just to clarify, when not logged into the front end it works correctly
Just tried reproducing it logged in and out…. and yes you are correct, editing the user while logged in does infact cause you to edit the wrong user.
do you think this might be a simple fix?