If $x=e$, there is nothing to do. Assume $x\neq e$.
Let $g\in N_G(\langle x\rangle)$.
Note that since $[x,g]\in\langle x\rangle$, then $x$ commutes with $[x,g]$. Since
$$[ab,c] = [a,c]^b[b,c]$$
holds in any group,
it follows that $[x^n,g]=[x,g]^n$ for all integers $n$. Indeed, we have that
$$[x^{k+1},g] = [xx^k,g] = [x,g]^{x^k}[x^k,g] = [x,g][x^k,g],$$
so if $[x^k,g]=[x,g]^k$, then $[x^{k+1},g]=[x,g]^{k+1}$. And $[x^{-1},g] = [g,x]^{x^{-1}}=[g,x]=[x,g]^{-1}$, so the result also follows for negative powers.
That means that the function $f\colon \langle x\rangle \to \langle x\rangle$ given by $f(x^a) = [x^a,g]$ is in fact a group homomorphism.
Let $H=\langle x,g\rangle$. Then $\langle x\rangle\triangleleft H$, and therefore $\langle x\rangle\cap Z(H)\neq\{e\}$, since any nontrivial normal subgroup of a $p$-group intersects the center nontrivially. (This is where I am using that $x\neq e$). Thus, the kernel of $f$ is nontrivial, which means that $f$ is not surjective.
Since $f$ is not surjective, its image is not all of $\langle x\rangle$, and therefore the image is contained in $\langle x^p\rangle$ (which is the unique maximal subgroup of $\langle x\rangle$) as desired.