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.
One partner is in the chain of command of the other partner.