Thank you for pointing out a clear absurdity! There are some ludicrous people on the internet who come across this pseudo-proof as you have and then think that all of mathematics must be false. (You are fortunate to recognize that you have made some error, and that's good.) So the problem with this line of reasoning is that $1 + 1 + \cdots$ is not a number. In fact, the series $\sum\limits_{i=0}^\infty 1$ does not converge to a number. (If you have not yet taken Calculus II or dealt with convergence of series, then...don't worry so much about the convergence details and just recognize that $1 + 1 + \cdots$ does not represent an actual number in the sense of an integer, rational, real, or complex number.)
Hence you cannot add 1 to $x$, because there is no definition of $+$ in this context. You also cannot subtract $x$ from itself, because $x$ is, again, not a number!
Hopefully that answers your question! Feel free to ask for more details, though I'm not sure what more I can give.