An engineer driving a locomotive on a railway who fails to ring the bell or sound the whistle on the locomotive, or have it rung or sounded in accordance with Federal Railroad Administration regulations under United States Code, title 49, § 20153, is guilty of a misdemeanor.