Read Deuteronomy 12:30 Using Other Translations
Take heed to thyself that thou be not snared by following them, after that they be destroyed from before thee; and that thou enquire not after their gods, saying, How did these nations serve their gods? even so will I do likewise.
take care that you be not ensnared to follow them, after they have been destroyed before you, and that you do not inquire about their gods, saying, 'How did these nations serve their gods?--that I also may do the same.'
do not fall into the trap of following their customs and worshiping their gods. Do not inquire about their gods, saying, ‘How do these nations worship their gods? I want to follow their example.’