The law of trespass , in particular as it applies to Level Crossings, but applicable to any trespass can be found here :-
http://www.lawcom.gov.uk/docs/cp194_web(1).pdf
and I quote from page 180 in that document:-
The trespass offences
13.15 There are at least three trespass offences...