So you draw an imaginary line around the parts of your application that have simple security requirements, make recommendations about the stuff inside the lines, ignore the stuff outside the lines, and berate the technologies that deal with the stuff outside the lines.
Just so we're clear.
If an attacker can mangle the server public key which you're distributing with the client code, they can mangle the client code, at which point you've already lost.