Whether the law is right or not is irrelevant. You either comply or leave.
So unless you think every society is totalitarian your point makes no sense.