From Matt Van Dyken – The first half focuses on the promises of the LORD and what the Israelites are called to do, and the second half focuses on what the Israelites are called NOT to do, and what the LORD will do if they do that.
A. 5 The LORD your God will push them back before you and drive them out of your sight. And you shall possess their land, just as the LORD your God promised you. 6 Therefore, be very strong to keep and to do all that is written in the Book of the Law of Moses, turning aside from it neither to the right hand nor to the left,
B. 7 that you may not mix (בּוֹא)
C. with these nations remaining among you (בַּגּוֹיִ֣ם הָאֵ֔לֶּה הַנִּשְׁאָרִ֥ים הָאֵ֖לֶּה אִתְּכֶ֑ם) or make mention of the names of their gods or swear by them or serve them or bow down to them,
D. 8 but you shall cling to the LORD your God just as you have done to this day.
E. For the LORD has driven out before you great and strong nations. And as for you, no man has been able to stand before you to this day.
E’. 10 One man of you puts to flight a thousand, since it is the LORD your God who fights for you, just as he promised you.
D’.11 Be very careful, therefore, to love the LORD your God. 12 For if you turn back and cling to
C’. the remnant of these nations remaining among you (הַגּוֹיִ֣ם הָאֵ֔לֶּה הַנִּשְׁאָרִ֥ים הָאֵ֖לֶּה אִתְּכֶ֑ם)
B’. and make marriages (בּוֹא) with them, so that you associate with them and they with you,
A’. 13 know for certain that the LORD your God will no longer drive out these nations before you, but they shall be a snare and a trap for you, a whip on your sides and thorns in your eyes, until you perish from off this good ground that the LORD your God has given you.