Section 18A. Whoever enters a dwelling house by false pretenses, without breaking and with the intent to commit a felony, no person lawfully therein being put in fear, or whoever enters a dwelling house by false pretenses, without breaking and, after having entered, commits a larceny, as defined by section 30, no person lawfully therein being put in fear, shall be punished by imprisonment in the state prison for not more than ten years or by a fine of not more than $5,000 and imprisonment in a house of correction for not more than two years, or by both such fine and imprisonment.