A former top Beijing official says Hong Kong’s national security laws must be constantly improved to close loopholes.