So, guiding your audience into doing what you want can be a challenging task, but when you get it right, it's ever so satisfying cause then they will just do the tricks for you.
So for me it starts with the approach. When you walk up to someone to do a trick, they have no idea what to expect and are usually complacent to begin with.
I start off by changing their perceptions of how traditional magic works, that way they don't think they can trick me cause they don't know what's going to happen next. If someone thinks you are going to take their card, put it in the middle, and then bring it to the top. They are going to take special care to make sure that their card finds its way into the middle of the deck and you can't get it out. However, if they don't know what to expect, they really aren't sure how to fool you.
Example: My opening trick always starts with letting them take a card. Then i ask them to hand it back to me, and I very obviously "peek" at what it is then proudly announce "You card is the King of Diamonds!" most people chuckle or get annoyed and say something like "yeah you looked at it!"
At this point, you can set yourself up for a double lift or a top change and hand them both "their card" and the deck. Ask them to put it in the middle. Many people are already thrown off guard, they will just comply. Then you can really WOW them by asking them to turn over the top card of the deck. You didn't even have to touch the deck for the magic to happen.
I guess what I'm trying to say is "always be one step ahead of your audience, and have a backup plan." Everyone screws up tricks all the time, and traditionally, the audience who is trying to mess with the magician isn't really the type of audience you're looking to perform for. You don't want to 'fool' your audience, you want to wow and amaze them.
If you're in a situation where your audience is trying to "get the better of you" then your performance -- even if you pull it off, is going to come off a little pretentious.