Nip in the bud
English
Description
To stop something at an early stage.
Examples
"If you see a bad habit begin to develop, try to nip it in the bud so that it does not become ingrained."
Sources
Equivalents
This is how you express this idiom across languages and locales.