There is no cheat code to unlock a "Space Criminal" character in LEGO Battles (DS). The game has very few cheat codes (mostly for studs/unlocking all levels), and none modify the character roster in Free Play or Story Mode.
You might be confusing it with:
In LEGO Battles, units are unlocked by completing campaign missions and challenges for each faction (Kingdom, Pirates, Space, Aliens, etc.). The "Space Criminal" isn't a distinct unlockable unit in the base game.
If you recall the platform (DS only) or a specific faction/level, I can check if a similarly named unit exists under a different name.