Egyptian protesters chant slogans during a demonstration in Cairo on April 25, 2016, against the handing over of two Red Sea islands to Saudi Arabia. Egyptian police fired tear gas at protesters in the Egyptian capital who defied government warnings and held a rally calling for the "downfall" of the regime, quickly scattering them and making arrests. / AFP PHOTO / MOHAMED EL-SHAHED

An Egyptian appeals court has overturned five-year prison sentences for 47 people for participating in unauthorised protests, but upheld fines of more than $11,000 each, judicial officials said Wednesday.

The defendants were among more than 150 people jailed in mid-May in connection with demonstrations on April 25 against Egypt’s decision to hand over two Red Sea islands to Saudi Arabia.

Lawyer Mokhtar Mounir, who represented several of the defendants, criticised the fines of 100,000 Egyptian pounds ($11,260) upheld by the Cairo appeals court on Tuesday evening as “exorbitant”.

He said the defendants must pay at least a quarter of the fine before they are released. If they cannot pay they will serve three months in jail.

“It means that the accused must buy their freedom with money,” Mounir said, adding that the defence would lodge another appeal.

Rights campaigners accuse President Abdel Fattah al-Sisi of crushing dissent since he deposed his democratically elected Islamist predecessor Mohamed Morsi in 2013.

The deal to hand over the islands in the Straits of Tiran had galvanised dissidents who oppose the former army chief.

The government says the islands had always belonged to Saudi Arabia and that Egypt had merely administered them while on lease since the 1950s.

Critics accuse Sisi of “selling” the islands in return for Saudi investments.

Since Morsi’s ouster authorities have banned all but police-approved rallies in line with a presidential decree and overseen a crackdown that has seen hundreds of Islamist protesters killed and thousands imprisoned.