I sometimes get too emotionally invested in characters, and I’ve been blindsided in the past when a character is killed off (looking at you, Martha Grimes), so if I think there’s a danger of that, I will look up a plot synopsis or turn skim the last chapter.
With books, more of my enjoyment comes from the quality of the writing, anyway, so I don’t mind spoilers.