I mean, even before you get into her being a spy, giving company secrets to an affair partner generally isn't very good business judgment either.
Whether you think that outweighs everything else is a distinct argument, but the two things aren't mutually exclusive.