Elon Musk has warned that anyone using Grok to create illegal content or using X to post illegal content will face consequences.