There's an election next year and Macron is so unpopular that Le Pen is favored as the likely winner, so Macron and his government are pretending to be tough on Islamism and immigration in order to try and peel some support away from her. If they actually get reelected, you can expect the rhetoric to change again as soon as they're secure in office.
From what I've heard, they're swinging hard right because of the rapefugee crisis, and their country being turned into west bumfuckistan
There's an election next year and Macron is so unpopular that Le Pen is favored as the likely winner, so Macron and his government are pretending to be tough on Islamism and immigration in order to try and peel some support away from her. If they actually get reelected, you can expect the rhetoric to change again as soon as they're secure in office.
Good luck doing that while being in the EU. That's exactly where Biden is trying to take us. Make us just like them.