That should not matter for the action itself.
You start the action behind the enemy so the server should register this as an action being performed behind the enemy regardless of you moving to the side during the animation.