"Dog" in this sense is a playful way of saying 'scoundrel' - kind of "you're so bad/cheeky" but in a playful, not serious tone. But don't worry about it too much, this is kind of outdated and we don't really use it in this sense very much at all (I've only come across it once or twice as a native English speaker) :)