Think it depends how fast the object moves. If you just use +1 offset and your object moves more than 1 pixel per frame, then yes, you'll find yourself in a fix. Because by that time you are well within the wall already, as you turn around and check for offset, you are still inside.
To be safe, factor movement speed into offset value. Or just move the object just outside the wall before turning it. It looks like ramming into the wall, staggering and then turning around.