sail close to the wind

To be on the borderline between legality and illegality.
The wealthy tycoon sailed close to the wind during Prohibition.
Categories: wind {v. phr.}