Monaco rallied from a two-goal deficit to beat Brest 4-2 in Ligue 1 and end the weekend in second place.