The prosecution must prove that the defendant entered or remained in a dwelling, structure, or conveyance, that the defendant did so without permission or invitation, and that the defendant intended to commit an offense inside at the time of entry or remaining.