Unless the right is expressed as "of the people", it applies to everyone, including visitors. The interpretation of "of the people" is "people of the United States of America". Hence, the 2A does not apply to visitors, since they are not "THE People". If you look at the 1A carefully, you will see that it contains different language for different things. THE freedom of speech applies to everyone, everywhere, regardless of whether they are currently under US jurisdiction or not. That is possible because it doesn't express that right in terms of who possesses it, rather as a restriction on what sorts of laws the government (our government) can pass that might impinge on the natural right of freedom of Speech. OTOH, it isn't immediately clear, at least at face value, that visitors have the constitutional right "peaceably to assemble and to petition the government". These functions seem to me to be plainly intended for citizens to exercise the democratic process. It does not follow that visitors cannot, of course. Not everything that people should be allowed to do is to be found is to be found in the Constitution.