KJV: Take heed to thyself that thou be not snared by following them, after that they be destroyed from before thee; and that thou inquire not after their gods, saying, How did these nations serve their gods? even so will I do likewise.
NASB: beware that you are not ensnared to follow them, after they are destroyed before you, and that you do not inquire after their gods, saying, 'How do these nations serve their gods, that I also may do likewise?'