Section 31. Whoever by a false pretence, with intent to defraud, obtains the signature of a person to a written instrument, the false making whereof would be a forgery, 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 jail for not more than two years.