I would think its meaning, like most meanings, would depend on context. I can imagine this being said in a mean way, if they were admiring how you had deviously gotten over on someone. Or, it might also be said in an admiring way, as they admired how machiavellian you are.
It would also depend on your relationship with the person who said it. If they like you, then it is probably a good thing. If you aren’t friends, it probably is not a compliment.