If $A$ is a subset of the domain of $f$, then one helpful way to think about $f(A)$ might perhaps be
$$
f(A) = \{f(x) : x \in A\}.
$$
You can check that this agrees with the definition you gave above.
As for your example, assuming $-2$ is in the domain of $f$, it is true that $f(-2) \in f(A) = \{f(2),f(3)\} = \{4,9\}$ since $f(-2) = 4$, but this causes no contradiction! Indeed, by your definition $4 \in f(A)$ if and only if there is some $x \in A$ such that $f(x) = 4$; since $2 \in A$ and $f(2) = 4$, then we're a-ok. The important thing to note is that your definition does NOT imply that if $f(x) \in f(A)$ then $x \in A$, rather it implies that if $f(x) \in f(A)$ then there is some $\tilde{x} \in A$ such that $f(\tilde{x}) = f(x)$.