Throughout our history, many have chosen to be martyrs for the sake of heaven. Whoever chooses the service of H'shem over the comforts and pleasures of this world even in the harshest of conditions will be "worthy of Divine grace in the bliss of the World- to -come".
pg 447
Nefesh Hachaim
One who learns Torah Lo Lishmah, (not for the right reasons) will earn his place in heaven and it will not harm his portion. Likewise, one is not allowed to judge this type of individual as his practice is accepted by H'shem.
Prologue to Gate Four Chapter Two page 121