COAS vows armed forces will stand