according to the documentation, operators != and <> are supposed to be interchangeable. But when operator "!=" is followed by a negative number, the request failed with an error "No operator matches the given name".
Here is how to reproduce the issue directly with psql :
[postgres@d04f96727d36 ~]$ psql psql (15.6) Type "help" for help.
postgres=# select -1<>-1; ?column? ---------- f (1 row)
postgres=# select -1!=-1; ERROR: operator does not exist: integer !=- integer LINE 1: select -1!=-1; ^ HINT: No operator matches the given name and argument types. You might need to add explicit type casts. postgres=#