The fact that border agents can search your personal effects is totalitarian, not unlike the stasi and other authoritarian regimes. The fact that this is 'normalized' in a democracy is astonishing.
This case also highlights the massive gap between civilized rule of law and what actually happens in these interactions, the dehumanization and arbitrary intimidation is not compatible with a democratic civilized society, and this culture of enforcement and lack of accountability is akin to a police state.