Dreams about being trapped, especially in a setting like an abandoned schoolhouse, can symbolize feelings of being overwhelmed or judged in your waking life. The school often represents learning and personal development, so finding yourself in an abandoned one might suggest feelings of neglect regarding your own growth or past experiences.
The presence of demons can represent inner fears, guilt, or unresolved issues that you might feel are judging you for your past actions. This dream could be urging you to confront these feelings and reflect on any guilt or anxieties you may be carrying. It might be beneficial to evaluate areas in your life where you feel judged or where you're struggling to move on from past mistakes.
Consider what aspects of your life feel abandoned or neglected, and think about ways you can address those feelings. Seeking forgiveness, either from yourself or others, and finding ways to learn from past experiences can help you break free from the constraints you feel in the dream.