I think a better approach is to answer the question as best as possible and provide constructive guidance for a better approach if they are headed down a fruitless path. Those are the best answers when I'm querying SO for solutions to my own problems.