You can't trap yourself since Ada pushes the boxes away from herself. Well unless you deliberately block the entrance. And why would you do this?
You can always use a recall scroll or fox crystal to teleport away into a safe location. All boxes will be reset once you'll leave the puzzle zone.