Javascript if a<x<b and c<y<d and x>y return value : ----------


Can some one explain if this is correct in javascript?
Or how to achieve that?

X - constant imput
y - constant imput
X>Y

if a<x<b and c<y<d and x>y return value


Option 1: if(100=<x=<500 && 1=<y=<7) return 5;

or 

Option 2: if(100<=x && x=<5000 && 12<=y && y<17) return 5;

Best regards
