1.
to prevent sb/sth from being able to move by surrounding them with people, vehicles, etc. :
Someone had parked behind us and boxed us in.
2.
[ usually passive ] ( of a situation ) to prevent sb from doing what they want by creating unnecessary problems :
She felt boxed in by all their petty rules.