If he is not careful, the French president is going to back himself into a dangerous little corner in Ukraine