MITM attacks intercept communications. Certificates and pinning prevent them.
Never ignore certificate warnings.