Which idiom is used to summarize the story of Meng Mu's three moves?

In order to educate Mencius not to give up halfway, Meng Mu used the metaphor that the cut yarn was not woven well. Meng Mu moved three times and chose a good environment to influence the growth of Mencius.

Liu Han, the teacher of the Third Movement, recorded in "Biography of Women": Meng Mu took the young Mencius and lived near the cemetery at first, and Mencius imitated the funeral; Later, he moved to the market, and then learned from businessmen to brag; Meng Mu moved near the school, where Mencius learned etiquette and asked to go to school. Later generations used the metaphors of "Three Movements in Meng Mu" and "Three Movements in Education" to choose a suitable living environment for their children to educate.

Mencius' mother warned her son by cutting the yarn on the loom so that the yarn on the loom could not be woven. Later, I used this story to warn people who dropped out of school.