Get your head out of the gutter!
The idiom "Get your head out of the gutter" means to stop thinking dirty thoughts when someone tells you to.
Example:
My Friend: *thinks of dirty thoughts and says it out loud*
Me: Get your head out of the gutter!
My Friend: *thinks of dirty thoughts and says it out loud*
Me: Get your head out of the gutter!