This grammar also knows about operator precedence.
So the point is, there is something here called operator precedence, which is what the gentleman said.
Consider using parentheses to improve readability and avoid mistakes because of logical operator precedence.