A SEX pest has been banned from Worcester’s city library and swimming pool after a judge concluded he posed a serious risk of harm to females in the future.

Mohammed Ilyas, aged 30, has been convicted of harassment, exposure and indecent assault on women.

But his offending recently escalated to a perverted interest in young schoolgirls, Worcester Crown Court was told.

Judge Alistair McCreath imposed a sexual offences prevention order (SOPS) on Ilyas, of Cherwell Close, Tolladine, Worcester, which he said could run for the rest of his life.

It bars him from entering the library in Foregate Street, where he exposed himself in May to a middle-aged woman. The incident was caught on CCTV.

It also stops him going to the pool in Sansome Walk where he was caught peeping at women in a changing room a month later.

The order also bans Ilyas from loitering within 300 metres of any school or befriending a girl under the age of 16 and forbids him from causing any woman alarm or distress.

Ilyas smiled in the dock as he was sentenced and the judge said his reaction reinforced the need for the SOPO to protect the public.

A six-month jail term was also passed after Ilyas admitted breaching a community order for harassment.

The judge said a psychologist’s report warned there was “a massive likelihood” of reoffending and added: “He is now showing a sexual interest in young women and has little understanding of his own sexual problems.”

He warned Ilyas that any breach of the SOPO would mean immediate jail.

Shane Crawford, prosecuting, said a police report outlined a catalogue of sex crimes by Ilyas in the last seven years.

A report by the probation service concluded his case was “very worrying”. Ilyas was unwilling to acknowledge his sexual offending.

He was also excluded from one therapy session after objections from other criminals that he was trying to discover their offences.

“He poses a high risk of harm to females and the consequences could be serious,” the report states.

A psychologist said Ilyas had no understanding of his sexual preoccupations and minimised or denied most of his offences.

Defence counsel Adam Western opposed the SOPO, insisting that past behaviour did not show a pattern of causing serious harm.