Those who meddle with astrologers and sorcerers (and like practices) put themselves on a collision course with God's judgment.
God knows everything, but this does not eliminate man’s responsibility to confess his sins. Failure to do so forfeits God’s practical forgiveness.
There are many things in this life that are not sinful in and of themselves, but when they are misused they can be deemed as sinful or harmful.