God can do anything as long as it does not violate His divine nature. In other words, He is restricted to functioning in ways consistent with His character. Consequently, there are several things God cannot do. For example:
God cannot lie. Dishonesty and deception are sinful, but God is holy. The Bible says in Numbers 29:13, “God is not a man, that He should lie.” Scripture also records God repeatedly saying, “Be holy, for I am holy” (see Leviticus 1145-46; 1 Peter 1:15-16). As such, it is impossible for God to lie or deceive anyone because it would violate His perfectly holy nature.
God cannot cease to exist. God is eternal with no beginning or end. Psalm 90:2 proclaims, “Before the mountains were born or You gave birth to the earth and the world, even from everlasting to everlasting, You are God.” As an eternal Being, it is impossible for God to stop existing. Additionally, He is necessary for everything else to exist, and without Him, nothing would exist that exists since He is the One who holds everything together (see Acts 17:24-25 and Colossians 1:17).
God cannot create a God. The Bible declares that only one God exists, and He is infinite and eternal. He is not a created Being but has always existed from everlasting to everlasting. As such, God cannot create a divine Being with an origination date because it is a contradiction of terms.
God cannot be tempted or entice others to sin. God is righteous, which means everything about Him is perfect and sinless. Therefore, He can never experience an inner desire or longing to sin nor be provoked, persuaded, bribed, swayed by, or presented with anything that would ever evoke a yearning within Himself to do wrong, including enticing others to sin.
God cannot learn anything. God possesses all knowledge. He knows everything that can be known, from eternity past to eternity future. Therefore, nothing surprises God because He operates in all times present— meaning the past, present, and future are "right now” to Him.
There are many other things God cannot do, like deny Himself, change, break His promises, contradict Himself, let unbelievers into Heaven, or send born-again believers to Hell. These factors do not discount or diminish His deity but reinforce it.
I hope this information helps you understand God's character and respond to those who question His ability or power.