I remember reading the details of a law that allowed a man to shoot someone, after sunset, with a bow-and-arrow, if the person you are shooting at is wearing a kilt.
Or something like that.
Anyway, i'm pretty sure that the OP is referring to laws banning certain sex acts.
Like fucking an animal, or another person in the ass, or public masturbation.
Or whatever.