N.Y. Comp. Codes R. & Regs. tit. 21, § 1085.14
(e) when a crossing gate is in the process of being opened or closed.
No person, except a Metro-North employee acting in the course of his duties, may cross Metro- North train tracks other than at a railroad crossing maintained for public use by Metro-North or at a private crossing established pursuant to statute or written agreement with Metro-North.
No person shall traverse any railroad crossing: