When you sail close to the wind you act just within the limits of what is legal or acceptable.Example: His business is doing well although he sometimes sail close to the wind.