This is an idiom which is more common in American English than UK English.
You're likely to hear it in films when one character feels another is trying to take advantage of him. e.g. if one gangster tries to do a deal behind his boss's back, he might be told, "Don't you ever try pulling shit on me like that again!"
buggles (not a teacher)