It's a two way street.

People have to display common sense and avoid places they know spoilers are likely going to be discussed.

That said people also can try not to be assholes and deliberately spoil it for people. Just throw up a spoiler warning, or use spoiler tags. If someone gets it spoiled then that's 100% on them. Everybody wins.