Teleporting out of the void if in the overworld

I tried running “execute in minecraft:overworld as @e[type=minecraft:player] at @s if entity @s positioned ~ -70 ~ run tp @s ~ ~ ~” within a repeating command block, it ends up constantly teleporting to me and keeping me in place
Continue to help post