Don't allow "Delete this field" if a module is activated
The module field lock allows you to lock fields for certain roles. You can use that module out of the box or you can copy it and adjust it so that the fields only lock if your module is activated.