I would just recommend writing them like any other character. Really doing research and such. I mean I grew up in a law office so have quite a bit of firsthand experience interacting with criminals. Obviously, no two people are alike.
My story follows an MC who’s a criminal, and I think that part of the fun in writing it is making it so that the reader feels sympathy for the MC, but really he’s an irredeemable psychopath.