who enters a building other than a residence, whose normal access is locked, or a residence in violation of an order of any court of competent jurisdiction in this state shall be imprisoned for not more than one year or fined not more than $500.00, or both. (d) A person who enters a dwelling house, whether or not a person is actually present, knowing that he is not licensed or privileged to do so