The Israelites are not to keep the law in order for God to save them. They have already been saved; God
Exodus (Original Meaning)
It is law, but it is based on the prior establishment of the relationship between them by God’s good pleasure. The people do not earn their salvation; but once saved, they are obligated to act in a manner worthy of their high calling.
Ephesians 4:1 ESV
1I therefore, a prisoner for the Lord, urge you to walk in a manner worthy of the calling to which you have been called,
2 Thessalonians 1:11 ESV
11To this end we always pray for you, that our God may make you worthy of his calling and may fulfill every resolve for good and every work of faith by his power,
Psalm 18:7 ESV
7Then the earth reeled and rocked; the foundations also of the mountains trembled and quaked, because he was angry.