I will refer to my comment:
https://news.ycombinator.com/item?id=6173274
It is probably a bad law, but it certainly not criminalizing people for what they are doing with their genitalia in private. He was probably thinking about Saudi Arabia or Iran, but there is strangely little outrage against them.