Grafana Alert condition

I am trying to enable alert on my dashboard. Elasticsearch is getting data through script a once which has information related to pod name, pod phase and i am assigning numeric status related to the status of pod as
Running numericStatus=1
Completed numericStatus=2
CrashLoopBackOff numericStatus=3
Error numericStatus=4
ContainerCreating numericStatus=5
Pending numericStatus=6

i want to apply alert on grafana dashboard, I have added this condition
WHEN max () OF query (A, 5m, now) IS WITHIN RANGE 3.5 TO 4.5
but it alerts correctly on the first time and then remain in the alerting condition. I want it to come out of alerting condition to OK so that it can generate alert again.
Can anyone help me with this?