A fork of Rural Dictionary
(of a sailing vessel) pointed as near as possible to the direction from which the wind is blowing while still making headway.
The experienced sailor expertly maneuvered the sailboat, sailing close to the wind to maximize speed and efficiency.
verge on indecency, dishonesty, or disaster
Here's a sentence using "sail close to the wind":
The politician's campaign ads sailed close to the wind with their negative attacks on the opponent.