IDIOMS

wise guy

(slang) A member of the Mafia; a mobster

Example: Used other than as an idiom: see wise,‎ guy.
One who is insolent or flippant; one who makes jokes or perpetrates pranks.
  Her reputation for being a wise guy made her new teachers hesitant about having her in their classes.
A knowledgable or successful sports bettor.