This is the primary rule of gun safety. Common sense dictates the safest direction, depending on different circumstances.
When holding a gun, rest your finger alongside the frame and outside the trigger guard. Until you are actually ready to fire, do not touch the trigger.
If you do not know how to open the action or inspect the chamber(s), leave the gun alone and get help from someone who does.