So, IVT essentially says if a function $f$ is continuous over an interval $[a,b]$, then the function $f$ will take up all the values between $f(a)$ and $f(b)$ at least once at some point in the interval $[a,b]$.
Now, suppose $f$ is continuous between $[3,7]$ and $f(3) = 4$ and $f(7) = 25$
According to IVT, $f(3) = 4 < m < 25 = f(7)$, i.e., the function takes up all the values between $f(3)$ and $f(7)$ at least once in the interval. But, according to the below picture, clearly, the function within that interval takes up values different that do not satisfy the above inequality. Please help me fill the gap in my understanding of IVT here.