适可而止

shì kě ér zhǐ

(idiom) to refrain from going too far; to know when to stop

shì

to fit

(prefix) can; may; able to; -able

ér

and

zhǐ

to stop