Paris Saint-Germain avoided a huge upset when it rallied from two goals down to beat second-tier Dunkerque 4-2 and reach the French Cup final on Tuesday.