So, true story.
I went to PLDC (first level Army NCO academy) as an E4, and, as one of the few Infantry in the class I assumed a platoon leader position for the student company. It was a mixed group, and one of the women, well, liked me. And she was married. No, we didn't. I won't say the tension wasn't there but it never happened.
A week after graduation I had to report to the brigade commander (full bird colonel) with my sergeant, and I got a short, brief, congratulatory remark for making honor grad. The next 45 minutes was a lecture of how military men messing with married women leads to various afflictions up to suicide.
I was sent curtly on my way. On the way out, the brigade command sergeant major said "Spec four Arrow, the only reason the colonel didn't fry your ass is because it would be really embarrassing to out an honor grad."