How you vote is entirely up to you.
Although if you believe the answer can be misleading (or if it's just straight-up incorrect), that would typically be a sign that you should not upvote it (and possibly downvote it), even if it has other merits.
The ideal, if possible, would be to leave a comment pointing out the problem in order to get them to fix it (or just to have it be a signal to other readers, although Stack Exchange apparently disapproves of that sort of thing). After they've done this it would be a useful correct answer, which seems fine to upvote (again: if you want to).
Alternatively, or additionally, you can post an answer of your own. This would be especially applicable if none of the answers give a complete answer. Posting an answer you feel is superior to all the other answers is exactly what we want people to do.
It shouldn't really matter whether this is related to your own question or someone else's (people might tend to be a bit more generous with their upvotes on answers to their own question, but it shouldn't be to an extent where you're upvoting incorrect things).