When comparing two values using math symbols, both values must be numbers. Text input’s text is going to be a string so you need to convert those by adding 0 to each one.
You can see an example in the link posted here: Feature Request - Convert Text to Number & Number to Text