Can the homeless stay at a library if the gates are always opened in Illinois?

If the gates to the library are open and never closes 24/7 in Chicago, Illinois can the police harass you for staying the night?
2 answers 2