Be watchful that you are not ensnared into following them after they have been destroyed before you and that you do not inquire after their gods, saying, How did these nations serve their gods? We will do likewise. You shall not do so to the Lord your God, for every abominable thing which the Lord hates they have done for their gods. For even their sons and their daughters they have burned in the fire to their gods. Whatever I command you, be watchful to do it; you shall not add to it or diminish it.
If a prophet arises among you, or a dreamer of dreams, and gives you a sign or a wonder, and the sign or the wonder he foretells to you comes to pass, and if he says, Let us go after other gods—gods you have not known—and let us serve them, you shall not listen to the words of that prophet or to that dreamer of dreams. For the Lord your God is testing you to know whether you love the Lord your God with all your [mind and] heart and with your entire being. You shall walk after the Lord your God and [reverently] fear Him, and keep His commandments and obey His voice, and you shall serve Him and cling to Him. ~Deut 12:30-13:4 AMP