What is the meaning of [one year’s seeding makes seven years’ weeding]

If you allow weeds to seed themselves, it will take a long time to get rid of all the new plants they produce; also used figuratively of the need to eradicate something undesirable before it has a chance to spread, or to warn people that their actions can have lasting repercussions