I thought Descartes explored this as much as possible, given his religious conditioning.
Descartes asks the reader to consider the possibility that an evil demon with "utmost power and cunning has employed all his energies to deceive me" could manipulate him into believing that he is thinking but easily dismisses this theory under God's infallible goodness.
The idea is that such an omnipotent evil demon would make us * believe* we are thinking, existing. As though our minds are at the whim of some absolute evil demon that can provide the sensation of existing or feeling or being, for nothing more than the mission of said evil demon.
Descartes doesn't refute this possibility but renders the outcome of such a scenario incompatible with reason or rationality, thereby effectively rendering any contemplation under such conditions a futile exercise unworthy of rational exploration.
Descartes concludes that thinking was enough of a premise to prove existence.
"Thus, I see that the certainty and truth of all my knowledge derived from one thing: my thought of the true God. Before I knew Him, I couldn't know anything else perfectly. But now I can plainly and certainly know innumerable things, not only about God and other mental beings but also about the nature of physical objects, insofar as it is the subject matter of pure mathematics."
Descartes's conditioning that God exists and that only good things can come from God while also supposing that knowledge of God's goodness is the foundation of all knowledge. God created me, and this mind for which I am contemplating my own existence. The act of thinking is enough to prove, only to ourselves, that we indeed exist. Meditations is Descartes's pursuit of pure rationality or ultimate truth.
It is in this pursuit Descartes determines he must prove his own existence before proving anything outside of himself.