Some rearmament is desirable. But figuring out how much to spend—and what to make—is critical to avoid mistakes, writes .