Ramping up military budgets in the face of flatlining social spending is a risky trade-off.