An Indonesian judge has warned that corruption committed during the COVID-19 pandemic could carry the death penalty.