A resident permit may be withdrawn and replaced ipso jure by a temporary residence permit in the following cases:
1° The foreign national, holder of a resident permit, may not be subject to a deportation order pursuant to articles L. 631-2 or L. 631-3 and has been definitively convicted on the basis of articles 433-3, 433-4, the second to fourth paragraphs of article 433-5, the second paragraph of article 433-5-1 or article 433-6 of the Penal Code;
2° A foreign national holding a residence permit marked “long-term resident-EU” as provided for in articles L. 421-12, L. 421-25, L. 424-5, L. 424-14 or L. 426-17, granted by France, and whose presence on French territory constitutes a serious threat to public order, may not be subject to a deportation order pursuant to articles L. 631-2 or L. 631-3.