Definitions of border search
the checking of what people are carrying at or near a place where they can cross from one country to another. Depending on the jurisdiction and any customs agreements between border countries, people crossing will often have their passports checked and may have to pass through customs and declare any goods brought from one country to another.
Officers must have reasonable suspicion in order to conduct a border search of an electronic device.