451. Whoever commits house-trespass in order to commit any offence punishable with imprisonment, shall be punished with imprisonment for a term which may extend to two years, and shall also be liable to fine; and if the offence intended to be committed is theft, the term of the imprisonment may be extended to seven years.