In any case you should rewrite it to something less stupid.
If you know your number is not less than or equal to 128, you shouldn't check if it's greater than 128 and certainly not twice.
I don't know your particular problem, but in many cases, it is both possible and better to rewrite if-then-else range problems and use a switch instead (integer division and modulo is your friend).
I hope you fucking die you faggot autistic nigger. It's not about this particular problem, it's just a shitty example, why can't you people ever learn this.