China has issued a grim warning after Australia agreed to boost surveillance ties in a major deal with the US, India and Japan.