Fix $x$. For a given $\epsilon>0$, let $$ g(x,\epsilon):=\sup\left\\{\bigg\vert\frac{1}{m(B)}\int_B f(y)\,dy - f(x)\bigg\vert: x\in B\hbox{ and } m(B)<\epsilon\right\\} $$ As $\epsilon$ decreases to $0$, $g(x,\epsilon)$ also decreases, to some limit. This limit is the $\limsup$ you seek. (I presume that $B$ is to be a ball.)