God’s “laws” are the only reason you exist in the first place. Without those laws, there would be no existence at all. The bequest is that you obey those laws so that you can continue to exist and do so in harmony (required to maintain existence and know joy).
Man attempts to make laws to ensure the existence of a society/country/kingdom. If and when Man invents those laws such that they are not in compliance with God’s laws, the country fails anyway. Man is not free to invent any kind of law he might like.
The laws from the prophets are laws about how to behave in society such that you and the society can be in harmony. You might say they are God’s suggestion for those wanting to continue to exist.
To “sin” merely means to err. The presumption is that you prefer to exist and thus to disobey God is to err (for your own sake) and thus to “sin”. Anytime a government makes a law that does not cohere to God’s laws, that government has sinned and will fail or change its ways. There is no option to that. No resistance or effort to change it can ever change anything about it. “It is the way it is”.
The only thing that changes is what people believe about what was there all the time. The God’s laws never change. The question is only whether anyone ever really understood them.
If you still exist then you have been obeying them more than you realize. But don’t push your luck.