It sounds like you are trying to say that Jesus is God by connecting the “I am” from John 8:24 to the statement that God made to Moses “I AM that I AM” in Ex 3:14.
As always let’s start by reading the scripture in context.
Then said Jesus again unto them, I go my way, and you shall seek me, and shall die in your sins: where I go, you cannot come.John 8:21-27
Then the Judeans (Pharisees v:13) said, Will he kill himself? because he said, Where I go, you cannot come.
And he said unto them, You are from below; I am from above: you are of this world; I am not of this world.
I said therefore unto you, that you shall die in your sins: for if you believe not that I am he, you shall die in your sins.
Then said they unto him, Who are you? And Jesus said unto them, Even the same that I said to you from the beginning.
I have many things to say and to judge of you: but He that sent me is true; and I speak to the world those things which I have heard of Him.
They understood not that he spoke to them of the Father.