Let $f \in \mathrm{Hom}_{\mathbf{Gr}}(G, G')$ be an injective morphism between the groups $G$ and $G'$. It is a fundamental property of morphisms (not necessarily injective) that $f\left[\langle X \rangle\right]=\langle f[X] \rangle$ for any subset $X \subseteq G$, where $\langle X \rangle$ denotes the subgroup of $G$ generated by $X$.
Let us fix $x \in G$. By definition, the order of $x$ is $\left|\langle x \rangle\right|$, the order of the monogenous subgroup generated by $x$. Taking into account the general property mentioned above, we have $\langle f(x) \rangle=f\left[\langle x \rangle\right]$. As $f$ is injective, it follows by elementary cardinal theory that $|\langle f(x) \rangle|=\left|f\left[\langle x \rangle\right]\right|=|\langle x \rangle |$ (in general $|f[T]|=|T|$ for any subset $T$ of the domain of definition of the injection $f$). This means nothing else than the relation you seek to prove: the order of $x$ and the order of its image $f(x)$ coincide.