Salvation is not based on behavior. Abraham believed and was accepted by God BEFORE he obeyed any rules.
Belief and Loyalty are related but not interchangeable.
“God’s laws were about showing God they weren’t going to be disloyal and align themselves with some other god. Being loyal believers would allow God to use the Israelites to minister to all the other nations like “a kingdom of priests” (Exodus 19:5-6).
God wanted humanity in his family. He was starting with one group – Israel. If they were loyal believers, they would be a blessing to all the other nations (Genesis 12:3)” Dr. Michael Heiser