Use the standard Moodle disabledIf functionality.
I don't have code in front of me, but it should look something like:
$mform->disabledIf('coursePrice', 'is_premium', 'notchecked');
(I suggest you search for examples in the code and copy what they do).