Urban explorers have been warned not to put themselves in danger after some visited the closed Accrington Victoria Hospital.