We should have a warning popup
Attention! Please don't answer low quality or off-topic questions. Try to salvage the problems with the question first by editing, or flag/close vote it appropriately.
or the better version (adopted from @poke's answer)
This question has currently a negative score and/or multiple close votes. Before investing time in your answer, please verify that the question is on topic, so your effort is not wasted and so that we do not encourage bad questions by answering them anyway.
If you believe the question is on-topic and has its merit, consider leaving a comment on the question first to explain your reasoning.
when an answer to a question—which had received a significant number of downvotes or already more than 3 close votes—is about to be posted.
This could help to reduce misconceptions of Stack Overflow, that you'll get an answer, no matter how bad your question is.
Update:
I've just noticed that the
badges are relevant. Just worth mentioning.
These badges actively support and encourage the behavior I'm trying to enforce with that warning:
1st care to salvage the OPs problems, then answer (maybe).