Beijing on Monday warned Australia to “act prudently” or face “serious consequences” after Canberra accused a Chinese fighter jet of dangerously intercepting one of its spy planes over the South China Sea.

Australia has argued it is not unusual for it to undertake surveillance flights in the South China Sea — a region Beijing insists comes under its domain despite a 2016 Hague ruling that dismissed its claims.

China’s stance has heightened tensions with the United States and its allies, which insist on freedom of navigation in the area.

Australian Defense Minister Richard Marles said Sunday that a Chinese J-16 fighter intercepted a P-8 surveillance aircraft late last month, in a “dangerous” maneuver that put the safety of the Australian Defence Force crew at risk.

But Beijing hit back Monday, saying it would “never allow any country to infringe upon China’s sovereignty and security… under the pretext of freedom of navigation.”

“China once again urges Australia to earnestly respect China’s national security interests and core interests, act and speak prudently to avoid a miscalculation occurring that results in serious consequences,” foreign ministry spokesman Zhao Lijian told reporters.

The incident comes three months after Australia accused the Chinese military of shining a military-grade laser at one of Canberra’s defense planes over waters north of Australia, which the previous government labeled an “act of intimidation.”

Zhao said Monday that China’s military has always conducted operations in a “safe, standard and professional manner” in line with international law.

Last week, Canada also accused Chinese pilots of nearly causing a mid-air collision during recent encounters in international airspace as the Canadians took part in efforts to enforce United Nations sanctions on North Korea.

China’s defense ministry retorted Monday that its pilots took “reasonable, forceful, safe and professional measures” in response to “provocative behavior” by the Canadian military.