Feels like a job for the coast guard
Though I don't think it's the job of the French police, and the French Coast guard to keep people prisoner in France.
Yes I know technically it's a border crossing and they have to register, but from a humanitarian perspective people trying to leave your country seems like something you should just let happen. Besides it shouldn't be illegal in France to go swimming, or even to go for a boat ride.