to stop sth when it has just begun because you can see that problems will come from it
NIP STH IN THE BUD
Meaning of NIP STH IN THE BUD in English
Oxford Advanced Learner's English Dictionary. Оксфордский английский словарь для изучающик язык на продвинутом уровне. 2005