They were rather to observe all His commandments diligently, and do what was right and good in His eyes. The infinitive וגו להדף contains the further development of וגו ייטב למען: "so that He (Jehovah) thrust out all thine enemies before thee, as He hath spoken" (viz., Exo 23:27., Deu 34:11).