Then (v 24), he concludes his point. First, he explains what he said about their deprivation; secondly, he points out its remedy (v 24b).
We should note with respect to the first, that everything in its development follows the condition of its origin. Thus, a thing whose origin is from below naturally tends below if left to itself. And nothing tends above unless its origin is from above: "No one has gone up to heaven except the One who has come down from heaven" (3:13). Thus our Lord is saying: This is the reason why you cannot come where I am going, because since you are from below, then so ...far as you yourself are concerned, you can only go down. And so what I said is true, that you will die in your sins, unless you adhere to me.
Then, in order not to entirely exclude all hope for their salvation, he proposes the remedy, saying, For if you do not believe that I am, you will die in your sin. He is saying in effect: You were born in original sin, from which you cannot be absolved except by my faith: because, if you do not believe that I am, you will die in your sin.
He says, I am, and not "what I am," to recall to them what was said to Moses: "I am who am" (Ex 3:14), for existence itself (ipsum esse) is proper to God. For in any other nature but the divine nature, existence (esse) and what exists are not the same: because any created nature participates its existence (esse) from that which is being by its essence (ens per essentiam), that is, from God, who is his own existence (ipsum suum esse), so that his existence (suum esse) is his essence (qua essentia). Thus, this designates only God. And so he says, For if you do not believe that I am, that is, that I am truly God, who has existence by his essence, you will die in your sin.
He says, that I am, to show his eternity. For in all things that begin, there is a certain mutability, and a potency to nonexistence; thus we can discern in them a past and a future, and so they do not have true existence of themselves. But in God there is no potency to non-existence, nor has he begun to be. And thus he is existence itself (ipsum esse), which is appropriately indicated by the present tense.
Source: Commentary on John