Enabling the phone's "Screentime" setting and checking the option that prevents account changes can keep your iCloud account secure.