Usually by ensuring that neither romantic partner is in the other's chain of command.
The chain of command for each partner does not include the other partner.