Rule #1 for travelers - "don't break laws in foreign countries".
It's not about the morality of the laws, it's about personal safety.
Lots of laws make no sense to me, but breaking them must be done with awareness (and acceptance) of consequences.