The maps analogy is that it's one thing for the Chinese government to tell Apple to implement a mapping app from scratch so that it can be used to display bogus mapping data. It's quite another for the Chinese government to tell Apple to modify its existing Maps app data.
In light of the inherent amorality of companies that you are pointing out, the people working in these companies should be smart enough not to go out of their way to place themselves in situations with such moral hazards. Apple shouldn't be building weapons.