Off-equilibrium confined dynamics in a system with level-crossing states