Change isGreaterThan to fail early

isGreaterThan would throw an IllegalAssertionArgument when the right
hand side of the comparision did not have a numeric value. However, it
only checked when the developer called the assert method.

I changed the code so that the check happens when the method is called.