Borrowing is the legal middle path. The book is still in copyright, you do not want to buy it, and a public institution has already paid the license. You need a card, not a workaround. The shelf you see is your library's shelf, not a universal catalog, and the file goes back when the loan ends.
Libby, from OverDrive, is the app most English-speaking public libraries hand you for ebooks and audiobooks. You sign in with a card from a participating library, browse what that library bought, place a hold when every copy is out, and read in Libby or, at some US libraries, send a book to Kindle. Loans expire. Highlights live with the app more than with a file you own. The member libraries are concentrated in the United States, Canada, the United Kingdom, Australia, and New Zealand. A card from a city that never joined will not open the app, and a card from a library that joined still will not show you someone else's collection.
Hoopla is the other common US and Canadian service. Instead of a copy limit you wait on, many libraries set a monthly borrow cap, and the title is usually available immediately because the library pays per borrow. Ebooks, audiobooks, and comics are streamed inside the app. You are not downloading an EPUB to keep. If Libby says the hold is eight weeks and Hoopla has the same book, the choice is real, and it depends entirely on what your library pays for. Some libraries offer one, some both, some neither.
中国国家图书馆 is the public counterpart on the Chinese side, not a clone of Libby. The National Library of China's site is the front door to digitized rare books, modern ebooks, Republican-era materials, and the reader portal that ties those collections to a reader account. A lot of the older material is page images or PDF. Contemporary lending sits behind a reader card, and some digital collections are limited to the library's own network or to addresses in mainland China. Treat it as a national library with a public mandate, which means rules, not as a store that happens to be free.
The practical annoyances are all about the loan, not about hunting for a download. Holds, loan length, and how many books you may have out are set by the library. A popular new novel can have a longer queue than buying it. That is still the point of the service. You were not going to reread it four times.
Format is the other annoyance. Public libraries often lend EPUB, which reflows, and PDF, which may be a fixed scan of a print page. A scanned PDF on a six-inch e-ink screen is a magnifying glass, not a book. When the loan is a PDF and your reader wants reflowable text, convert a copy you are allowed to use for the length of that loan, and delete it when the loan ends. The license does not become ownership because a converter touched the file.