hǎo​hàn​bù​chī​yǎn​qián​kuī

[idiom] a wise man knows when to retreat