Dreaming that you are trapped and unable to get out of a negative situation can mean you're feeling trapped or without any options somehow in real life.
Someone has trapping you because they want to harm you can represent:
A feeling or fear of being cornered or forced into a certain choice or action in real life
Your subconscious mind playing out one of your fears or something you've seen on TV