As international criticism grows over new measures threatening Hong Kong's autonomy, Beijing warns others to stay out of its affairs.