Good day. It is very difficult to say here that a person can prevent this on his own. It seems to me that the whole thing is as a foundation. And if it is bad, then cracks in it can appear just for one, two, three. In this case, it does not hurt to order a waterproofing foundation from outside so that you can fix and repair all the flaws. Only in this case you will be guaranteed complete safety and inviolability of the house.