It is not against Tawakkul to take preventive measures in epidemic conditions Such measures are persuaded by Prohetic traditions. If the authorities advise such measures, it is an Islamic duty to obey. At the same time v should refrain from sins and should make istighfar.