Enforcement wouldn't solve any problems here, it would just antagonize the students. The underlying problem that needs to be addressed is insufficient space to work or nap between classes.
It might antagonize the students who are looking for a place to nap, but is that all of the students? I think other students might be happy to have their library available to them as a library again.