How to set right coordinates?(UNSOLVED)

I know got this: if Charleson == True:
if Cat.getY() < 22.19 and Cat.getY() > -43.19 and Cat.getX() < -185.33 and Cat.getX() > -185.33:
Charles()
if Charlesoff == False:
if Cat.getY() < 0.0 and Cat.getY() > 0.0 and Cat.getX() < 0.0 and Cat.getX() > 0.0:
BackToPR()

The Y coordiantes are on different places but the X coordinate is good on both place, but In still can’t teleport, so why is it stuck?