Dudley and I were in the alleyway between Magnolia Crescent and Wisteria Walk,” said Harry, speaking fast, fighting to control his temper. “Dudley thought he’d be smart with me, I pulled out my wand but didn’t use it. Then two dementors turned up —”
Does it mean to outsmart someone? or just another way of saying make a joke on someone?