What should you do when your chatting up a woman and another man shows up trying to do the same thing you are? Should you give up an move on, or try and 'alpha' them and make them run off?

Has anyone had any experiences like this? What did you do, or what should you have done?