X didn't raid the prosecutors offices, the prosecutors did
On a related note given AI is just a tool and requires someone to tell it to make CSAM I think they will have to prove intent possibly by grabbing chat logs, emails and other internal communications but I know very little about French law or international law.
I think that would delve into whether or not the USA would be considered a foreign adversary to France. I was under the impression we were allies since like the 1800s or so despite some little tiffs now and again.
[1] - https://www.congress.gov/bill/118th-congress/house-bill/7521