No. If $f$ is the zero function on $\mathbb{R}$ then it is not possible to have $\max_{|x-x_0|<\delta} f(x) < f(x_0)$.