The way I explain it we are not saved BY good works but rather we are saved FOR good works.Are we saved by doing good works then?
And many see that referring to how nations will treat Jews and Christians in the Great tribulation, as to how God shall the nations...
MA 7
18A good tree cannot bring forth bad {evil} fruit, neither can a corrupt tree bring forth good fruit. 19Every tree that bringeth not forth good fruit is hewn down, and cast into the fire. 20Wherefore by their fruits ye shall know them.
The MAT 25 passage refers to the sheep and the goats, the language used in the New Testament to refer to the saved and the damned.
MAT 25:46 And these shall go away into everlasting punishment: but the righteous into life eternal.
Everlasting punishment obviously refers to Hell and life eternal obviously refers to Heaven. There's nothing here that refers to the tribulation. This is the Final judgement.