A military base is public property.
Reserved for the exclusive use of the military.
There are numerous military bases that are closed to public access.
They do not actually have to even listen to your protestations about entrance.
And if you try to force entry you may find out the 'Use of deadly force authorized' is not just a sign.
Since you have no right to enter, you enter under their rules.