China has sent a strict warning to the UK and EU, as tensions between China and Canada mount over the detention of individuals on either side.