They can investigate all they want, they can even detain you briefly, but if you are a citizen and there’s no evidence of a crime then they have to let you in.
They have more guns than you do, and these days, most of the judges are blindly and shamelessly on their side. They don't "have" to do jack.
And if you're not a citizen?