China has condemned the recent anti-government protests in Hong Kong and has said that it is Hong Kong's priority to punish violence.