(a) a person wilfully does or omits to do anything in relation to the railway or railway premises; and
(b) by that act or omission, the safety of any person being on the railway or on railway premises is endangered, or is likely to be endangered,
the first-mentioned person commits an offence and is liable to a fine at level 6 and to imprisonment for 3 years.