For a counter example you have to have a limit point $y\in\overline f(A)$ that is not in $f(A)$ and $y \ne f(x)$ for any limit point of $A$. As $f$ is continuous if $a_n \rightarrow x$ then $f(a_n) \rightarrow f(x)$ so for the only way for this to happen that I could see we'd need $a_n$ diverge but $f(a_n)$ converge.
So my thought was to have a (partially) unbounded $A$ that doesn't have boundery points wheres $f(A)$ is bounded and does.
My thought was to manipulate $A = \mathbb N$ (because {n} diverges as $n \rightarrow \infty$) and $f(x) = 1/x$ (because {1/n} converges as $n \rightarrow \infty$) so $0 = \lim_{n\rightarrow \infty} 1/n \in \overline {f(A)}$ but $0 \not \in f(\overline A)$ .
But I like the other posters' answers of $f(x) = e^x$ better which is the same idea. Namely $\mathbb R$ has no lower bound but $f(\mathbb R)$ does.
(I think I'd need some tweaking as $f(x) = 1/x$ isn't continuous and f(0) isn't defined if I include 0 in the domain. I guess this isn't a deal breaker but it didn't feel right to not have 0 in the domain but to have it in the range space.
(I finally used $f(x) = x$ if $x \le 1$ and $2- 1/x$ if $x > 1$ so $f: \mathbb R \rightarrow (-\infty, 2) \subset \mathbb R$ so for $A = \mathbb N$ $f(A) = f(\overline A) = \{2 - 1/n\}$ whereas $\overline {f(A)} = \{2 - 1/n\}\cup \{2\}$.)
(But I think $f(x) = e^x$ is cleaner and neater.)