见妓行事
[jiàn jì xíng shì]
Jian Ji Xing Shi, while seemingly controversial at first glance, it should be noted that its literal translation 'act appropriately on seeing prostitutes' could be considered an idiomatic expression advocating situational adaptiveness and tact in handling social affairs with due respectfulness; though modern connotations vary.