Usually this is caused by the collision polygon or origin image point location on the enemy sprite. When it collides with the marker and turns, it immediately collides the second time and turns again. To avoid this issue, make sure the collision polygon is rectangular and origin point is in the middle.
Also, you can add a cooldown - for example, after turning, don't allow to turn again for 1 second. Use Timer behavior for this.