Describe the bug
Code stops working after migration from 12.1.0 to 12.2.0 or 12.3.0
f1(x) = x < 2 or x > 3
filter([1,2,3,4,5], f1)
To Reproduce
This can be easily reproduced on the main page using the demo widget. https://mathjs.org (math.version 12.3.0)

However, it works if the ‘or’ is removed.

On https://mathnotepad.com/ (math.version 10.3.0) it also works.
