Deu 31:8 And the LORD, he it is that doth go before thee; he will be with thee, he will not fail thee, neither forsake thee: fear not, neither be dismayed.
Deu 31:16 And the LORD said unto Moses, Behold, thou shalt sleep with thy fathers; and this people will rise up, and go a whoring after the gods of the strangers of the land, whither they go to be among them, and will forsake me, and break my covenant which I have made with them.
Deu 31:17 Then my anger shall be kindled against them in that day, and I will forsake them, and I will hide my face from them, and they shall be devoured, and many evils and troubles shall befall them; so that they will say in that day, Are not these evils come upon us, because our God is not among us?
Anyone is free to interpret that as they see fitting the whole counsel of God. Maybe we will even see an interpretation offered, or I will just be called names for pointing out the context.
What I see is, God will always keep His end of the covenant, no one needs to worry about that, but if people forsake Him and go after other gods, and dont return to Him, God will also forsake them as He promises to do in the chapter, and explains the reasons. Not many other ways to read that, but im open to any alternatives