AND requires the expression on both sides to be TRUE in order for it to return true:
X > 5 AND Xx < 10
What you are asking for is
X = 5 AND X = 10
And since a single value cannot equal two different values at the same time, you will always get FALSE from that, regardless of the value of X.
Probably, you want OR, not AND - it returns TRUE if either or both of teh conditiosn it TRUE, and only returns FALSE if both are FALSE:
X = 5 OR X = 10