What is the meaning of the word "roguishly"?

Definitions:

  1. in a playfully roguish manner copy to clipboard adverb
    • They winked at us roguishly. copy to clipboard
  2. like a dishonest rogue copy to clipboard adverb
    • They roguishly intended to keep the money, but ended up listening to the better angels of their nature. copy to clipboard