Libgen and the current zeitgeist is making sure that no one will ever write books except those who have the privilege of writing them for fun or for free. If you have ever tried to write a book, depending on the scope it is a monumental multi year effort. It takes time, risk tolerance and money to do it.
If the society wants short term benefits (libgen) over destroying long term incentive structures that led us here with a huge wealth of knowledge, we are going to see a world devoid of high quality books (with aforementioned exceptions).
Purchase books. Please.
Stop justifying piracy. Same arguments can be made for things other than books.