National security law: former Hong Kong lawmaker who helped guide opposition primary steps down amid Beijing warnings