Le Mans scored a late goal to secure a 3-2 victory over Marseille in the French League, escaping the relegation zone.