Whoever, under circumstances or in a manner not amounting to burglary, enters a building or any part thereof, with intent to commit an offense, shall be imprisoned not more than 1 year.