A boolean value is true or false. Comparisons such as count >= minimum produce booleans, which you can combine with && for both requirements or || for either requirement. Use ! to reverse a condition. Equality uses ==; assignment uses a single =. They do different jobs.
Write each boundary from the rule itself. An inclusive range contains both endpoints, so it needs >= and <=. Java doesn't chain comparisons the way mathematical notation sometimes does. Short-circuit operators also control evaluation: the right side of && runs only when the left side is true. Put a safety condition first when the next expression divides or accesses data. Parentheses make mixed logical rules easier to read and keep their intended grouping visible.