I think there is a machlokes achronim whether a person who knows that he will do an aveirah voluntarily if he can kill himself to stop himself. Perhaps this is Nogeia to the shaaleh of whether it is proper to kill yourself after doing an aveirah! That i know is definately a machlokes! Can anyone shed light on this delicate matter?
edited to specifically ask this question when nisayon is voluntary