Combine between conditions

Hi All,

I have configured two streams: Warning and Critical
Alert condition has been configured for each one of the streams:

Warning:
Alert is triggered when there are more than 20 messages in the last 5 minutes. Grace period: 1 minute. Including last message in alert notification.

Critical:
Alert is triggered when there are more than 30 messages in the last 5 minutes. Grace period: 1 minute. Including last message in alert notification.

In case of 40 messages both alerts are triggered although I want the warning alert to be triggered only when the amount of messages is higher than 20 but lower than 31, as there is another stream configured for more than 30 messages condition.

I tried to create additional alert condition for warning stream:
Alert is triggered when there are less than 31 messages in the last 5 minutes. Grace period: 1 minute. Including last message in alert notification.

In this case 0 messages triggers an alert for warning stream because it seems like there is no AND condition between both condition but OR.

I would appreciate you assistance with finding a solution for this scenario.

BR,
Roman