(3) A warranty, as above defined, is a condition which must be exactly complied with, whether it be material to the risk or not. If it be not so complied with, then, subject to any express provision in the policy, the insurer is discharged from liability as from the date of the breach of warranty, but without prejudice to any liability incurred by him or her before that date.