AT a restaurant/bar with friends and girl. Girl says to me during dinner, "ew that creepy guy over there keeps looking at me, blah blah"

I respond "Why dont you go on over and give him a kiss" Then I turn towards him, look him in the eye, and make a kissy face. The guy sees me and turns the other way. Then the rest of the night was fine.

Did I handle this as best I could- I usually use humor in these type of situations.