There are more than one way but try this:
Use an instance variable to handle the enemy state, for example: moving_left, moving_right
Compare this state and move it using a behavior like 8 directions.
Use invisible sprites do change the enemy state like:
On colision with "sprite movement helper" if enemy.state = moving_left set it to moving_right else set it to moving_left