If the man is attractive, women will generally welcome the flirtation. If he is unattractive, the woman will generally perceive it as an insult to her attractiveness, since the man should know better, that she is "out of his league."
Also, can anyone explain why it is considered a "good thing" to have a gender balance in tech, or any industry? Who decided that every industry must have an equal number of men and women?