Section 12. Any uniformed member of the state police may, upon view of any misdemeanor committed in his presence while on duty, arrest the person committing such misdemeanor, where such misdemeanor was committed in any building or grounds owned or occupied, wholly or in part by the commonwealth, or on streets adjacent to any such building, and shall enforce all traffic rules, regulations and ordinances on streets adjacent to buildings owned or occupied, wholly or in part, by the commonwealth.