The French is not really the same, they're the ones being occupied and it's the Nazis/Germans who were the interlopers. Kinda like Kuwait and Iraq.
Afghanistan I can see, but then that kinda negates your point about being in unpopular wars...
Of course, every country has its own internal problems of people dying of starvation, homeless, living in poverty, etc. I think you'd be hard-pressed to find an example where everything is hunky-dorey. However, sometimes some governments perpetuate that misery and actually don't care about their citizens and then perhaps it's time to intervene, either militarily or economically.