Monaco twice came from behind and needed an 86th-minute winner to claim a 3-2 win at third-division Vannes in the ninth round of the Coupe de France.