The Constitution makes no exemption for a suspension of rights at the border.
The Supreme court disagrees with you.
The Supreme Court often disagrees with itself.
The supreme court is made of fallible humans