ADC read before bootloader

HI, 

    I am working on a application which has an requirement, that I need to read the current value if it is above threshold value then I need to turnoff the control. Here my query is ,is there any way to do that task before entering to bootloader. Main reason for that is ,anyway bootloader will take certain time to boot(which is less only) the application at that time I don't want my device to get damage.so just curious to know can achieve that functionality, if yes then please share the reference. 

Related