Whoever, within the jurisdiction of the United States, goes upon any military, naval * * * reservation, post, fort, arsenal, yard, station, or installation, for any purpose prohibited by law or lawful regulation * * * shall be fined not more than $5,000 or imprisoned not more than six months or both.
32 C.F.R. §770.20