There is a Pasuk in פרשת שופטים that deals with the subject of sorcery and witchcraft. It simply says, תמים תהיה עם ה׳ אלוקיך, that we must remain wholehearted in our serving Hashem and act with perfect faith.
According to the Rambam, there are fifty-one out of the 613 Mitzvot that are related to עבודה זרה, idol worship. Many of these laws deal with all kinds of strange worship that involves all kinds of superstitions. It is easy to be lured into some of these practices as often, the practitioners are able to do impressive feats.
The problem is that they get their strength from כח הטומאה, from the side of impurity. We are to attach ourselves only to the holy and pure.
This is why there is a special commandment to serve Hashem without getting sidetracked by that which will distance us from Him.