Do I go with it or politely tell them that’s not appropriate here?

We are human right? Well that’s not my question but it leads up to one that I am wondering… What should I do if someone says a flirty comment? In response to that should I just go with it or politely tell them that’s not appropriate here? I am not aware of how to handle such a situation.