What do the x=, y=, and z=, parameters even do?

I feel like they're supposed to detect the coordinates of an entity/player, but whenever I try using it, it doesn't go into effect. I'm trying to run this command: execute as @a[team=++] at @s[x=-1] run tp @s ~2 ~ ~ in tick.mcfunction, but whenever I add myself to team ++, my character just goes... 🎶 Cause I'm having a good time, HAVING A GOOD TIME!!! ☁️☁️☁️☁️☁️☁️ᕕ( ᐙ )ᕗ and I have to leave the team to stop myself. It's like the x=-1 didn't even do anything.
Continue to help post