Moses gives speeches about laws and the importance of following God before the Israelites enter the Promised Land.
When thou art come into the land which the LORD thy God giveth thee, thou shalt not learn to do after the abominations of those nations.
When you enter the land that the Lord gives you, don't learn to do the wicked things of those other nations.