You mean there are two standards in USA one at the borders another in the country.
So all countries denying reporters, human rights workers or dissidents or protestors to enter their borders are doing it correct, because the rule of law is inside borders not outside.
So your thought justify very much the border agents analysing your phones and electronic media before entering, like the way in recent memories happening in Hong Kong borders due to protests.
You might, but personally I cannot agree with such a notion of dual standards of law. I understand entry to a country and visa is a privilege not a right. But if a country believes in rule is law and on foundations of "Innocent until proven guilty", then it should abide by it.