Whoever, having management of, or control over, a railroad train while being used for the common carriage of persons, is guilty of gross carelessness or neglect in, or in relation to, the management or control thereof shall forfeit a sum not exceeding five thousand dollars or be imprisoned not more than three years.