Where is my comment? (I really hate the GitHub review system). 

Write this code:

{
  if (value >= 0.0 && value <= 1.0) {
    apply change
    return
  }
  throw exception
}

It's two tests instead of three.