Force plugin to fail activation

I’m writing a plugin that will be using custom fields added by a theme.

Because of this, it would be ideal if my plugin not be able to activate should these fields not exist.

How do I go about displaying an error and forcing the activation to fail?

Solutions Collecting From Web of "Force plugin to fail activation"