Cert PIN-ing should prevent MITM'ed ssl from working.
1. It only prevents you from connecting over a MitM'ed connection if the cert is already pinned, i.e. if you've visited the site before.
2. If your connection is MitM'ed, you have no way to securely access the site you want except connecting over another channel.