Huck,
I think the constitutional rights only apply once you've been allowed in - while in immigration, you are in limbo.
Of course, if you slip in illegally over the Mexican border, you are protected against most things, especially if you have a kid born there.