What level are you? What skills have you allocated? You might be underlevelled, level 14 or 15 is the ideal for the Maxos Temple. If so, there's a waypoint shrine just past the library, run there and teleport to safety. If you can't make it, but have a free skill point, Put it in Hide In Shadows to make your getaway run/ perform hit-and-run attacks on the enemies.
If the guys in the library are giving you problems, you'll have a LOT of problems completing the temple.