Every engineer, conductor, brakeman, switch-tender, or other officer, agent, or servant of any railroad company, who is guilty of any wilful violation or omission of his duty as such officer, agent, or servant, whereby human life or safety is endangered, the punishment of which is not otherwise prescribed, is guilty of a misdemeanor.