明哲保身

be worldly-wise and make oneself safe

míng zhé bǎo shēn ㄇㄧㄥˊ ㄓㄜˊ ㄅㄠˇ ㄕㄣ