title: Check ipaddress with ip2long fails
body: <p>Hi I am attempting to check a users ipaddress that can come from two specific ranges. I convert the users ipaddress using ip2long, I then check to see if they are in range however it is failing. I wondered if anyone can spot any rookie mistakes as I am quite new to PHP. Thanks in advance:</p>
  
  <pre><code>$high_ip = ip2long('87.228.97.128');
  $low_ip = ip2long('83.229.97.165');
  $second_high_ip = ip2long('16.254.116.1');
  $second_low_ip = ip2long('16.254.116.128');
  $userip = ip2long($_SERVER['REMOTE_ADDR']);
  
  
      if($userip  &lt;= $high_ip &amp;&amp; $low_ip &lt;= $userip ){
          //do something  
      }else if($userip  &lt;= $second_high_ip &amp;&amp; $second_low_ip &lt;= $userip ) {
          // do something
      }else {
         // echo "invalid ip";
   }
  </code></pre>
  
  <p>-- edit -- When hitting the page from an ipaddress within the range it fails the if check as though the ipaddress is wrong. </p>