Of course, you are 100% correct. And if the majority of the people are religiously convinced that adulterers should be executed and enshrine that in the law, then the minority who disagree should bear with the situation or leave if they feel it’s intolerable and that they wish to commit adultery without fear of being caught.