How to make an object be destroyed if a float is in a range

how do i make an object be destroyed if a float is in a range. and no i cannot just set it to <=0, there is a problem that arises when i do that.

well depending on what/where the float is, but a simple if (varliable < a_value) Destroy(thing);

i need it to be within a range of 0 to -999

What is the problem?

if (float >= -999 && float <= 0){
    Destroy(object);
}