Its an oft repeated point that Hitler made the same mistake as Napoleon, but the situations were actually very different. In particular, there was the actual threat of Stalinist Russia getting completely industrialized and then attacking Germany first. And so its often debated among historians whether the German invasion was inevitable.
As is usual with the conquer-the-world types, not knowing when to stop was Napoleon's downfall. Hitler made the same mistake - taking on both Britain and Russia at the same time.