CAIRO – Wading into an increasingly volatile fray, Egypt’s military on Sunday gave the nation’s Islamist rulers and their opponents a week to reach an understanding before planned June 30 opposition protests aimed at forcing out the president, in a toughly worded warning that it will intervene to stop the nation from entering a “dark tunnel.”

The powerful military also gave a thinly veiled warning to President Mohammed Morsi’s hard-line backers that it will step in if the mostly secular and liberal protesters, who have vowed to be peaceful, are attacked during the planned demonstrations.

In a bid to project a business-as-usual image, Morsi’s office said in a statement late Sunday that the president met with the army’s chief, Defense Minister Gen. Abdel-Fattah el-Sissi, to discuss the “domestic scene and the government’s efforts to maintain the security of the nation and the safety of its citizens.” There was no mention of el-Sissi’s warning.

Seeking to assert Morsi’s seniority over el-Sissi — the president is the supreme commander of the armed forces — the brief statement, alluding to June 30, said he ordered the quick completion of plans to protect the state’s strategic and vital installations.

The opposition argues that Morsi and his Muslim Brotherhood, despite having won a series of elections since the 2011 revolution that ousted autocrat Hosni Mubarak, have squandered their legitimacy with heavy handed misrule. It contends that the Islamists have encroached on the independence of the judiciary, sought to monopolize power, and pushed through an Islamist-backed constitution, breaking promises to seek consensus.

Morsi’s supporters say the opposition has shunned his offers of dialogue and now are turning to force to remove him because they have been unable to compete at the ballot box.

On Sunday, a court compounded Morsi’s troubles by saying members of his Muslim Brotherhood conspired with Hamas, Hezbollah and local militants to storm a prison in 2011 and free 34 Brotherhood leaders, including Morsi. Also, the most iconic youth figure of the 2011 revolution, Wael Ghonim, called on Morsi to step down before June 30 to prevent bloodshed.

Both sides say they intend to be peaceful on June 30, but many fear the day could descend into violence. There are worries young protesters could attack offices of the Brotherhood and its political arm, the Freedom and Justice party. Some of Morsi’s hard-line supporters have vowed to “smash” the protests or have declared protesters infidels who deserve to be killed.

“Those who will spray Morsi with water will be sprayed with blood,” warned one cleric.