Adultery in the military is frowned upon because you can be blackmailed very easily. An E-3 with a secret clearance and a mistress would have the hammer come down on him. This has occurred on numerous occassions. Criminal organizations and foreign intelligence services/militaries have used this exploit for centuries.
Yet, Peter Strozk was never reprimanded or had oversight. A Deputy Director of the FBI and vet.