i can not open your file because of the addon. But what i can see from your screenshot, it is not that hard:
For offset comparison, use the enemys width (*x, if needed), as it automatically becomes negative when it is mirrored.
So he attacks in both directions. For the movement of the opponent, you simply set another condition,
which also asks if player and opponent overlap at offset.
EDIT: If the x-offset is too high, it can happen that the enemy wont attack the player when both have nearly the same x-position
and dont overlap at offset anymore. Make sure that the gap between offset x/-x is not greater than the players width.