Having problem restricting boundary area

i try to set a boundary but it don work.
i dont know what’s wrong.
is like if more than -170 and less than -190, it will gotoAndPlay (2)

so i script…

if (-190 > green_mc._x<-170){
gotoAndPlay(2)
}

but is not working…
and how to script if i wan to restrict left and rite area as well as top and bottom area?