Check if the value is out of range
bool isOutOfRange(int value, int min, int max) => value < min || value > max;