They won't stuck.
It's in the way the level is designed, how collision with obstacles is managed and the enemy's AI which already includes avoiding obstacles. Have also in mind that the game has a slight perspective which allows us to make the base of the enemies (which interacts with the background) smaller than the actual height of the enemy