I often tell people I like to sit near the front in case I have to heckle. So far, nobody's picked me up on it.
I usually try to give the performer a 'feed' they can make a witty response to, so they get a laugh from the audience. If they don't seem to find it helpful, I don't persist; and if they look nervous I keep quiet.