Section 19. Whoever breaks and enters, or enters in the night time without breaking, a railroad car, with intent to commit a felony, shall be punished by imprisonment in the state prison for not more than ten years or by a fine of not more than five hundred dollars and imprisonment in the house of correction for not more than two years.