hai provato cosi?

if($_GET['id'] >= $min){ ....

if($_GET['id'] <= $max){ ...