Splitting bounded ranges into dual AND statements