According to New York Penal Law §140.20, a person may be charged with burglary if they knowingly enter or remain inside a building without license or privilege with the express intent of committing a crime while inside. Importantly, the intended criminal act does not actually have to occur for someone to be charged with burglary in the third degree, which is a class D felony.