There's a fine line between harassment and flirting - but my own definition (which works for me) is that if I like it it's flirting and if I don't, and I ask him to stop and he doesn't, it's harassment.