My understanding is that the Border is not technically U.S. soil and as such the normal laws don't apply there.
What you mean is the doctrine that states that some of the protections offered by the US constitution do not apply near the border. That doesn't mean the law does not apply.