Police have again warned people against entering the old Buckhaven High School after the building was damaged by fire on Sunday evening.
The Scottish Fire and Rescue Service sent seven appliances to deal with the blaze on the third floor of the former school, which is in the process of being demolished.
Officers have stressed that the building is in a poor state of repair and poses a high risk of serious injury or death.
Hazards include asbestos, holes in the floor and sharp objects.
Community Inspector Tom Brown said: “We would like to stress the dangers of entering the building and any person caught doing so will face charges.
“Due to the demolition work the old school has become increasingly hazardous and anybody entering the site is at risk of serious injury.
“Security has been increased but any person entering or attempting to enter will be prosecuted.”
Five people have already been reported to the Procurator Fiscal for offences including theft and vandalism since the school closed at the end of June.
Sunday’s blaze broke out at around 9.15pm and firefighters were on the scene until 1am.
Buckhaven and Kirkland high schools both closed before the summer holidays and pupils moved to the new Levenmouth Academy at the start of the new term in August.