Beijing was responding to claims it might use Huawei’s 5G kit to act “in a malign way”.