The best precaution to take when using a public computer in a library to access your email is to log out of your email account after use. This helps to ensure that no one else can access your email account after you are finished.
Saving your password on the computer, disabling the firewall, or sharing login details would compromise your security and should be avoided.