Ask HN: When is flirting at the workplace sexist?
It's really a general question, so I'll post the context that prompted me to ask this as a comment.
My advice is to avoid behaving as if the workplace were a singles bar and to avoid behaving as if the workplace were...well whatever sort of place sexist behavior might be deemed appropriate.
Good luck.