You literally have more rights if you successfully cross illegally. This only harms people crossing the legal way. Illegal crossers who are later arrested have protection - any search will require probable cause and a warrant.