1. sail close to the wind - Verb
2. sail close to the wind - Phrase
(nautical) To sail in a direction close to that from which the wind is blowing, but still making headway
(idiomatic) To behave in a manner that is on the verge of being dangerous, improper or illegal
Source: en.wiktionary.org