China police warn against illegal gatherings after rare Beijing protest