It looks to me like he was asserting his 4th amendment rights.
Under US Supreme Court case law, there is a well recognized “border exception” to the 4th Amendment that permits searches without warrant of not only travelers from abroad but of anyone in areas close to the border. If you don’t like that, don’t leave the country and avoid the borders.