Every library established pursuant to this chapter shall be forever free to the inhabitants and nonresident taxpayers of the municipality, subject always to such rules, regulations, and bylaws as may be made by boards of library trustees. Any person who violates any rule, regulations, or bylaw may be fined or excluded from the privileges of the library.