Boundary coordinates not working

hey guys, i made sum coordinates that my MC (supposedly) cannot pass. But he keeps going past them. i was wondering if sumone can take alook for me.


   if (this._y<=175 && this._y>=400) {
   		moveYSpeed = 0;
   		moveXSpeed = 4;
   		scaleSpeed = 0;
   	} else {
   		if (this._x<=0 && this._x>=550) {
   			moveYSpeed = 2;
   			moveXSpeed = 0;
   			scaleSpeed = 0;
   		} else {
   			moveYSpeed = 2;
   			moveXSpeed = 4;
   			scaleSpeed = 0.5;
   		}
   

ovcourse this is only a portion of my code but, can sumone check if its right? the variables speek for themselves. any help would be greatly appreciated.

thanx

first two statements will always be evaluated as false
here’s why:
(this._y<=175 && this._y>=400)
if y is smaller than 175 AND biger than 400(imposible)
if (this._x<=0 && this._x>=550)
if x is smaller than 0 AND biger than 550 (also imposible)