Cardi B, a rap and pop superstar, exhorted her millions of followers on Twitter this week to obey the laws or risk punishment from the criminal justice system.