Crossing a border gives the incoming country the right to search your belongings without a warrant. It's not like a judge sits there ordering search warrants to open a suitcase.
But that said, I would agree that carte blanche right to "inspect" an electronic device seems overly intrusive. It's not like the government can require a bodily cavity search at the border, so clearly there are limits that require a warrant.