It seems harsh
but it's true that when people live on the edge of hunger and thirst, when a technological or other improvement comes along, the population just increases to the point where they're on the edge of famine again. It happened in the Green Revolution of the 1960s in which Western techniques were introduced to 3rd world agriculture, crop yields increased, and people had more children until they became approximately as bad off as they were before. It's only human nature and it will probably always happen this way unless family size limits are enforced somehow, as repugnant as that may seem.