But I note that with the backslash it does work
$ if [ "5.7.1" \> "5.7.22" ]; then echo bigger; else echo smaller; fi
And since 5.7.1 finishes by 1, lexical comparision should work (5.7.1 is smaller than 5.7.10)