China warns of retaliation if US takes action over Hong Kong security law