That's not for you to decide, though. If you don't like a law, work to get it changed, don't visit the place that has that law, or stop doing what is breaking that law. Those are your options.
Again, that's just a personal opinion. I could have that opinion about any number of laws and choose to disobey them because of that.
You're certainly entitled to the opinion that the law is indefensible and should never be followed. It's just weird to me for you to treat this like some sort of obvious objective view with no reasonable grounds for disagreement.