Hey everyone, hope everything's going well, but I got a question. How do feel and act when a girl says "I have a boyfriend"?

I know that it's can be a shit test but personally I always feel like I'm over stepping a boundary if I continue to persist and she repeats, and especially if she genuinely does have a boyfriend.

I enjoy approaching women, even if I do get rejected, but I don't want to be the guy that goes after others who are in a relationship, so I usually just excuse myself or say "well alrighty, have a good night" and move on to others.