To stand off and on

(Naut.) to remain near a coast by sailing toward land and then from it.- Sir H. Wotton.

See also: Stand