Get Your Mind Out of the Gutter

What does the expression “get your mind out of the gutter” mean?

Definition: stop putting a sexual connotation on the things I’ve said

Example: A: “Grab your balls!” B: [snickers] A: “Get your mind out of the gutter! We’re going bowling.”