Acksually... the British government in colonial Australia did forbid shagging the natives, in many proclamations.
Control over access to women was as important as control over the ports, to the government.
(It didn't work. Thirsty bois and thrill-seeking women crossed the line a lot.)