The library AppSheet uses for expression parsing is designed for Excel formulas. AppSheet has adapted it for expressions. There are some expressions it may not handle properly. This may be one.
Yes your observation is correct and it should work as it is, the way you have coded above. Definitely it is a bug and that edge test case is not handled by the function.
Another variation that works is putting the second argument in parenthesis. The following variation works.