Religious scholars(at least Abrahamic ones) hold the position that morality is not exclusive to their faith. While they may not process the fullness of the faith.
Furthermore, they can’t make a judgement regarding the state of the soul as it is not possible to know what is truly in their heart.
Hence the story of Christ absolving the thief on the cross.
Anyone can reach salvation but following the faith is the guide.