That isn’t true. They can detain you briefly for questioning at the border, but if there is no crime then you will be released. Feel free to dig into historical court cases about border detention if you disagree.
If you get charged with a crime, things are very different.
If you get charged with a crime, things are very different.