Adultery stopped being prosecuted as a crime long ago. The only place I have seen it prosecuted in the last 15 years is the military, and then only as a political tool.
Officers entangling themselves with enlisted is another matter, but even it is winked at if the participants are discreet.
I wouldn’t so much expect it to be prosecuted as a crime as widely eschewed by parents and governing authorities who respect the laws of God and nature. My employer has been known to fire people who are known to cheat on their spouses. Adultery lends to instability and, if rampant enough, diseases. We don’t encourage that kind of behavior unless we are reckless, lawless, and godless. None of those attributes attend to good government, but they do appear all too often in bad government.