What should a doctor do if there is negative consent by relatives for intubation, CPR or ICU stay? Is negative consent legally valid in India?

Can a doctor be still prosecuted by other relatives for not doing sufficient treatment if he follows the negative consent and patient dies eventually?