Postgres Check If Value Is In Range