““Then he will answer them, ‘Truly I tell you, whatever you did not do for one of the least of these, you did not do for me.’ “And they will go away into eternal punishment, but the righteous into eternal life.”” Matthew 25:45-46 CSB https://bible.com/bible/1713/mat.25.46.CSB
Every judgment warning from Jesus, whether in the gospels or Revelation, warns us that our actions will determine our destiny. But Christianity teaches salvation by grace alone through faith alone. Indeed, a perfect God requires perfect obedience to His ways, which we perfectly fail to meet for we are born imperfect. From birth, we are ignorant of God and disobey His commands to love Him first and most and to love others as we love ourselves. We are, therefore, utterly incapable of saving ourselves through good deeds. This is why Jesus, God Himself, came into our world to save sinners to whom we all belong. Born of a virgin, so that He was not corrupt from birth, but born of a woman so that He came to us just like all of us come into this world to be one of us, and thus the sacrifice for all of us taking upon Himself the punishment we all deserve. At the same time, He lived a perfect life to be the perfect sacrifice for our disobedience. His resurrection proves His sacrifice was acceptable, and now He pardons all who come to Him in faith by His grace for living with Him forever. So why does He still speak of our works to earn salvation? Our works do not earn salvation but prove our salvation. These works in today’s passage were either done for Him and to Him or were not. Those who live for themselves, even trying to be good to make God accept them, will fail, for their focus is upon themselves. Those who do good for God’s glory in Jesus the Savior prove they love Him and are grateful to Him for His pardon of them for all their disobedience done against Him. These will be saved by God and live with Him forever.