We have laws to keep us safe and protect us from harm. Obey the law and you have no negative consequences. Breaking the law has a different outcome.
There are physical laws, too. I know if I jump off a building that I will fall. I have no plans to test that!
God created the universe with structure and laws to guide us. Following His lead will take us where we want to go. God only wants good for our lives. Let’s follow Him…