Section 118. Whoever, with intent to defraud, sells and conveys registered land, knowing that an undischarged attachment or any other encumbrance exists thereon, without informing the grantee of such attachment or other encumbrance before the consideration is paid, shall be punished by imprisonment in the state prison for not more than three years or in jail for not more than one year.