Each employee of a mine shall go to and from his place of duty by the traveling ways provided. He shall not travel around the mine, or the buildings, tracks, or machinery connected therewith, where duty does not require, and when not on duty, he shall not loiter at, in, or around the mine, or the buildings, tracks, or machinery connected therewith.