Of course you could always add parentheses for clarity, which in some cases is a good idea, althought most times it’s best to just split the expression into multiple expressions and take advantage of naming variable.
But for simple logic expressions like the one you mentioned, this is just something programmers are expected to just learn early on.