The good news is there are some solutions out there, and they're slowly gaining traction in a grass-roots style. One example is schools teaching the "Foundations in Personal Finance" curriculum [1].
But to make a big difference quickly, it needs to be more than just some schools here and there, but a national mandate to teach these sorts of things.
But ... I'm not going to hold my breath. To that end, I help volunteer leading these sorts of classes. Small moves.
----------------------------------------
To add to this people also will have children they can't afford. Sometimes by "accident" and sometimes planned with the same thinking that "everything will just work out".
You also hear about someone who didn't want to have the nth child but now boy are they glad they did (not factoring in the impact on the rest of the family or other kids) or taking money into the picture. Simply because the nth child is alive and you can't imagine (once they are born) that you could have considered not having them.