So what? Your country isn't Bali, Indonesia. The fact of the matter is that this is the law of that land, and nobody is exempt just for having strong opinions against it.
Like what's your point here? You should be able to go to another country, tell them that you don't like their laws, and enjoy some kind of immunity as a result? That they'll just suddenly go "Hey, this foreigner is right, we should totally change our culture and laws to match their opinion!" If you can't abide by such laws in such a country then don't go to that country. It's that simple. What you don't do is go anyway and then openly insult and defy them, and then get upset when the place with extreme laws doles out harsh retribution.
Like them or not, extremist or not, these are their laws and this guy openly flaunted violating them:
Zgraggen boasted in Instagram posts that he had defied restrictions that prohibit residents and visitors from leaving their homes or accommodations except for emergencies.
In video clips shared online, Zgraggen smiled at the camera and described walking to a beach during the observance. In one, he called the tradition “crazy” and used an expletive.
Definitely not respectful of their laws. Tourists are probably given quite a large leash too, this guy was being downright insulting and hostile to them. He fucked around, and now found out.