Not sure where I first heard that saying. A good guess would be my mother, but the truth is I just don’t know. Nonetheless, it’s a saying that rings true for me.
I like how simple it is. So many circumstances that it applies to as well. Health certainly (“An apple a day keeps the doctor away.”), but also just as a general precautionary principle of not letting small problems become large ones.