IR sensor code

I am trying to get four continuous rotation servos attached to wheels to stop whenever the value of analogread from an IR sensor is between two numbers. The servos move but will not stop when the value is in between those two numbers, I do not believe anything is wrong with my code (code below) and I believe it is a power issue, can someone please double check my code for me?

#include <Servo.h>

int servopinr = 9;
int servopinr2 = 10;
int servopinl = 11;
int servopinl2 = 3;
int stopdist = 400;
int IRpin = A0;
int angle = 45; // counterclockwise full speed
int angle2 = 135; //clockwise full speed
int angle3 = 90; //stop
int stopdist2 = 499;

Servo servor;
Servo servor2;
Servo servol;
Servo servol2;

void setup()
{
Serial.begin(9600);
servor.attach(servopinr);
servor2.attach(servopinr2);
servol.attach(servopinl);
servol2.attach(servopinl2);
}

void loop()
{
int IRscan = analogRead(IRpin);

if (stopdist2 >= IRscan >= stopdist) {
servor.write(angle2);
delay(20);
servor2.write(angle2);
delay(20);
servol.write(angle3);
delay(20);
servol2.write(angle3);
delay(20);
}

else
{

servor.write(angle);
delay(20);
servor2.write(angle);
delay(20);
servol.write(angle2);
delay(20);
servol2.write(angle2);
delay(15);

}

Serial.println(IRscan);
delay(10);
}

This does not work as you clearly would like:

if (stopdist2 >= IRscan >= stopdist) {
. . .
}

Try:

if (stopdist2 >= IRscan && IRscan >= stopdist) {
. . .
}

It works now, thank you so much!!