These nations were left
"These nations were not destroyed"
as a means
"as a way"
whether they would...gave their ancestors
The words "they" and "their" refer to the people of Israel.
the commands he gave
The word "he" refers to Yahweh. AT: "the commands Yahweh gave"