Penal Code § 369d
TITLE 10. OF CRIMES AGAINST THE PUBLIC HEALTH AND SAFETY
Any person who enters upon or crosses any railroad, at any private passway, which is inclosed by bars or gates, and neglects to leave the same securely closed after him, is guilty of a misdemeanor.