Position selector arguments don't seem to be checked. For example, running /execute if entity @e[x=0,y=0,z=0] run say Hi in a new world should not do anything, as there is no entities at 0,0,0. Yet running this command still causes the player to say Hi.
You need to quantify your search using a
distance(ordxyz). Otherwise, you're essentially just changing the origin of the search, without defining the bounds.