Your latest screenshot shows the exact same code you originally posted. The answer that @BenGitter gave you is similar to what I will say.
Your first if statement is currently checking if val is less than 24. When the function is called with the number 24 as in the test case of testLessThan(24), that line is read as “Is 24 less than 24?” The answer is “No”, so “Under 25” is NOT returned. Then, the next if statement asks “Is 24 less than 55?” The answer is “Yes”, so “Under 55” is returned.
The bottom line here is you need to change your if statement condition to something that will cause “Under 25” to be returned if val is less than 25.