Police are gearing up for a major response to a planned immigration protest and counter-rally, which will test expanded search powers.