As far as I know that is 100% legal. I'm totally unaware of anything in the constitution that would prevent that. Like, why would it be illegal for a private citizen to do that?
many in this thread are assuming that the state/fed government can just write laws that say "speech related to noticing people on public land" is exempt from protection and can be curtailed