When you upload a new firmware, you do not overwrite the bootloader; so there is no possibility of "bricking" an ESP device, as may happen with a mobile phone. In case you do not like the new firmware, you can just download a new AT firmware from the internet and upload it to the device.