Deuteronomy 12:30

After their destruction take care that you do not go in their ways, and that you do not give thought to their gods, saying, How did these nations give worship to their gods? I will do as they did.

Deuteronomy 7:16

And you are to send destruction on all the peoples which the Lord your God gives into your hands; have no pity on them, and do not give worship to their gods; for that will be a cause of sin to you.

Exodus 23:31-33

I will let the limits of your land be from the Red Sea to the sea of the Philistines, and from the waste land to the river Euphrates: for I will give the people of those lands into your power; and you will send them out before you.

Leviticus 18:3

You may not do those things which were done in the land of Egypt where you were living; and you may not do those things which are done in the land of Canaan where I am taking you, or be guided in your behaviour by their rules.

Numbers 33:52

See that all the people of the land are forced out from before you, and put to destruction all their pictured stones, and all their metal images, and all their high places:

Judges 2:2-3

And you are to make no agreement with the people of this land; you are to see that their altars are broken down: but you have not given ear to my voice: what have you done?

2 Kings 17:15

And they went against his rules, and the agreement which he made with their fathers, and his laws which he gave them; they gave themselves up to things without sense or value, and became foolish like the nations round them, of whom the Lord had said, Do not as they do.

Psalm 106:34-38

They did not put an end to the peoples, as the Lord had said;

Jeremiah 10:2

This is what the Lord has said: Do not go in the way of the nations; have no fear of the signs of heaven, for the nations go in fear of them.

Ezekiel 20:28

For when I had taken them into the land which I made an oath to give to them, then they saw every high hill and every branching tree and made their offerings there, moving me to wrath by their offerings; and there the sweet smell of their offerings went up and their drink offerings were drained out.

Ezekiel 20:32

And that which comes into your minds will never take place; when you say, We will be like the nations, like the families of the countries, servants of wood and stone;

Romans 12:2

And let not your behaviour be like that of this world, but be changed and made new in mind, so that by experience you may have knowledge of the good and pleasing and complete purpose of God.

Ephesians 4:17

This I say, then, and give witness in the Lord, that you are to go no longer in the way of the Gentiles whose minds are turned to that which has no profit,

1 Peter 4:3-4

Because for long enough, in times past, we have been living after the way of the Gentiles, given up to the desires of the flesh, to drinking and feasting and loose behaviour and unclean worship of images;

Treasury of Scripture Knowledge

Summary

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.

Bible References

That thou

Deuteronomy 7:16
And you are to send destruction on all the peoples which the Lord your God gives into your hands; have no pity on them, and do not give worship to their gods; for that will be a cause of sin to you.
Exodus 23:31
I will let the limits of your land be from the Red Sea to the sea of the Philistines, and from the waste land to the river Euphrates: for I will give the people of those lands into your power; and you will send them out before you.
Leviticus 18:3
You may not do those things which were done in the land of Egypt where you were living; and you may not do those things which are done in the land of Canaan where I am taking you, or be guided in your behaviour by their rules.
Numbers 33:52
See that all the people of the land are forced out from before you, and put to destruction all their pictured stones, and all their metal images, and all their high places:
Judges 2:2
And you are to make no agreement with the people of this land; you are to see that their altars are broken down: but you have not given ear to my voice: what have you done?
2 Kings 17:15
And they went against his rules, and the agreement which he made with their fathers, and his laws which he gave them; they gave themselves up to things without sense or value, and became foolish like the nations round them, of whom the Lord had said, Do not as they do.
Psalm 106:34
They did not put an end to the peoples, as the Lord had said;
Ezekiel 20:28
For when I had taken them into the land which I made an oath to give to them, then they saw every high hill and every branching tree and made their offerings there, moving me to wrath by their offerings; and there the sweet smell of their offerings went up and their drink offerings were drained out.

How did

Jeremiah 10:2
This is what the Lord has said: Do not go in the way of the nations; have no fear of the signs of heaven, for the nations go in fear of them.
Ezekiel 20:32
And that which comes into your minds will never take place; when you say, We will be like the nations, like the families of the countries, servants of wood and stone;
Romans 12:2
And let not your behaviour be like that of this world, but be changed and made new in mind, so that by experience you may have knowledge of the good and pleasing and complete purpose of God.
Ephesians 4:17
This I say, then, and give witness in the Lord, that you are to go no longer in the way of the Gentiles whose minds are turned to that which has no profit,
1 Peter 4:3
Because for long enough, in times past, we have been living after the way of the Gentiles, given up to the desires of the flesh, to drinking and feasting and loose behaviour and unclean worship of images;

General references

Numbers 33:52
See that all the people of the land are forced out from before you, and put to destruction all their pictured stones, and all their metal images, and all their high places:
Deuteronomy 12:4
Do not so to the Lord your God.
Deuteronomy 18:9
When you have come into the land which the Lord your God is giving you, do not take as your example the disgusting ways of those nations.
Deuteronomy 20:18
So that you may not take them as your example and do all the disgusting things which they do in the worship of their gods, so sinning against the Lord your God.

Basic English, produced by Mr C. K. Ogden of the Orthological Institute - public domain