Swing for the Fences

What does the idiom “swing for the fences” mean?

Definition: Attempt to achieve the largest accomplishment possible

Example: If I play it safe with my presentation, I’m sure I can pass the course. But I want to get an A, so I’m going to swing for the fences.