Well, even today adultry is illegal in some states, but thankfully not a capital crime. As of 2022 It's illegal in 16 states (including a few surprising states like New York) and a felony in 3 (Michigan, Wisconsin, and Oklahoma.)
But yes, enforcement is rare and probably for exactly the reason you say.
But yes, enforcement is rare and probably for exactly the reason you say.