I doubt that what you are proposing as the receptacle for the obstruction is the correct abelian group. For one thing, you are not taking into account the involution on the canonical double cover of the double point manifold, i.e.,
$\{(x,y)\in S^n\times S^n\setminus \Delta_{S^n} |f(x) = f(y)\}$ (where we have assumed $f$ has been made self-transverse). This involution is a crucial aspect of the answer.
I think the answer to the question is going to be complicated.
Let me write a few words as to what might constitute a "non-naive" approach.
1) If $X$ is $2$-connected and $n > 2$, then there is no obstruction to deforming a map $f: S^n \to X$ to an embedding. This follows from the work of Haefliger, Hirsch, et. al.
So assume for the rest of this note that $X$ is not $2$-connected.
2) Consider the problem deforming, through regular homotopy, an immersion $f:S^n \to X^{2n-1}$ to an embedding, where $X$ is not assumed to be $2$-connected.
According to the work of Hatcher and Quinn (see also Corollary G my paper with Bruce Williams, "Homotopical Intersection Theory, II: Equivariance"), the obstruction, given by the double point manifold, lies in a certain twisted Bordism group
$$
\Omega_0(E'(f,f)_{h\Bbb Z_2};\xi_{\Bbb Z_2}) \, ,
$$
where $E'(f,f)$ is the homotopy pullback of the diagram $S^n \to X \times X \overset{\Delta}\leftarrow X$ (the map $S^n \to X \times X$ is given by $x\mapsto (f(x),f(-x))$, and $\Delta$ is the diagonal). The space $E'(f,f)$ has a $\Bbb Z_2$-action and $E'(f,f)_{\Bbb Z_2} = E\Bbb Z_2 \times_{\Bbb Z_2} E'(f,f)$ is the Borel construction. Here $\xi$, defined over $E'(f,f)$, is a certain virtual vector bundle of rank $-1$, which is too technical to describe here.
Hence, we wish to identify the above bordism group as an abelian group.
Let us make a further simplifying assumption that the manifold $X$ is stably parallelized. In this case the virtual bundle is trivial. So the bordism group in this case is then $\pi_0$ of the homotopy orbits of a certain action of $\Bbb Z_2$ on the suspension spectrum $\Sigma^{-1} (E'(f,f)_+)$. After choosing a basepoint in $X$, there is an evident equivariant map
$\Omega X \to E(f,f)$ which is $(n-1)$-connected (where $\Bbb Z_2$ acts by reversing loops). So the map
$\Sigma^{-1}(\Omega X_+)\to
\Sigma^{-1} (E'(f,f))_+$ is $(n-2)$-connected.
Assuming that $n \ge 3$, the latter map will then be at least $1$-connected, and the obstruction be regarded as residing in $\pi_0$
of the homotopy orbits of a certain action of $\Bbb Z_2$ on the suspension spectrum $\Sigma^{-1} (\Omega X_+)$. Here $\Bbb Z_2$ is also acting on the suspension coordinate.
I don't know how to make this computation.
However, if we apply the "transfer" $\Omega_0(E'(f,f)_{h\Bbb Z_2};\xi_{\Bbb Z_2}) \to \Omega_0(E'(f,f);\xi)$ to this problem
(see my papers with Williams; this philosophically has the effect of thinking of the self-intersection question as an ordinary intersection question between two distinct manifolds and so we can then ignore the involution), then we are looking at the abelian group
$$
\pi_0(\Sigma^{-1} (\Omega X_+)) = \pi_{1}^{\text{st}}((\Omega X)_+)
\cong \Bbb Z_2 \oplus \pi_1^{\text{st}}(\Omega X)\, .
$$
If we make yet another simplifying assumption that $X$ is $1$-connected, then
the displayed group is isomorphic to $\Bbb Z_2 \oplus \pi_2(X)$.
(But as noted above this group is solving a different question.)
3) There is the related question of deforming a map $f: S^n \to X$ to an embedding. The first step in solving the question is to find an immersion in that homotopy class. The obstructions can be studied using Smale-Hirsch theory; this essentially a question about find a section of a certain fiber bundle over $S^n$ whose fibers are Stiefel manifolds.
Assuming the immersion exists we can look at all immersions in that homotopy class. Then we can employ the approach of (2) to each such immersion to create a "torsor" of indeterminacies. If we divide out by this indeterminacy, we get the answer. I will not detail this approach here, but a related problem of this kind was solved in a paper of mine, "Poincare complex diagonals."
Addendum: I just looked at the last section of Mark Grant's paper mentioned in the comments to the question. He is doing something similar to what I did at the end of (2) above, in that he is trying to avoid the problem of computing the involution.