Most trespassing offenses are misdemeanors. However, trespassing while armed with a firearm or dangerous weapon is a third-degree felony carrying up to 5 years in prison. Trespassing on certain critical infrastructure facilities may also be charged as a felony.