Seems to work correctly:
if [[ "-2" -gt "-1" ]]; then
echo "-2 >-1"
else
echo "-2 <=-1"
fi
Output:
-2 <=-1
You might want to use ((...))
which enables the expression to be evaluated according to rules of Shell Arithmetic.
$ ((-2 <= -1)) && echo Smaller or equal || echo Larger
Smaller or equal
$ ((-2 <= -3)) && echo Smaller or equal || echo Larger
Larger