Range check for switching