Protesters planning to march at two demonstrations despite a ban have been warned to expect riot police and officers with long firearms.