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.