If any brakeman, switchman, or other person in charge of any switch, shall wilfully or carelessly leave the same open or improperly placed, whereby any person shall be killed or injured, he shall, on conviction, be imprisoned in the penitentiary not more than fifteen years.