I think what you'll want to do is create two rules - one for each group. They should be created against the Groups Data Type, rather then Groups Members. They should be condition, with Must Exist, and the group name or SID being checked in the IF part. You can remove (red X) the THEN part.
The way you have the rule set up currently, it will always fail because it's looking for a single result that satisfies both of your IF conditions.