It is weird to hear: 1) stop having so many kids, it's bad for the Earth, and 2) we're not having enough kids, let's substitute with immigrants.
Also, isn’t immigration a negation of 1)? The kids are already born, they’re just not in the same country.
Sarcasm aside, there are two systemic problems at play. 1) is ecological, and 2) is economic. The second may be physically easier to solve- but it still requires us to figure out a way to move beyond our capitalist system that a) prioritizes relentless growth and consumption, and b) has countries with large welfare programs that requires new workers and taxpayers to keep the elderly and the ill off the streets.