God gave the law to the Jewish people, so they know that law, and if they do bad things, God will punish them the way that law says. And the same too for people that are not Jewish, if they do bad things, he will punish them.