懸崖勒馬

Idiom

 * 1) to desist from doing something before it is too late; to pull back before it is too late