https://en.m.wikipedia.org/wiki/Border_search_exception
https://oceanservice.noaa.gov/facts/population.html
It’s also been hypothesized that the “border” could be expanded to include many more. International airports are arguably ports of entry. Native American territories and embassies + consulates are considered foreign soil.