Add a bounds check in IpAddr RawFromSql impl