My solution
Add 2 variables name: last_x, last_y for object skeleton, then try to find when he collison the obstacle => action make he move back to last_x, last_y
And if anyone knows how to add animation to the enemy (Idle, Attack, Run)?
=> This simple drag these sprites to animation editors ? You can find others sprite in itch.io (Awesome site to get free pixel resource)