If the adequate measures were taken, such a thing wouldn't have happened ( past tense, the action has already happened ) or If the adequate measures are taken, such a thing will not happen ( the action has not happened yet ). while using the word adequate is not incorrect i would tend to use 'correct measures' instead, but sufficient is good and i would say sufficient precautions instead of adequate.