We all know that plagiarism is a crime and can ruin your career.
The key point is how not to do it. A starting point is here.

It’s also good to read about plagiarism and plagiarism detection. If you find a good resource, please send it to Hunter! Thanks in advance! (I hate that expression.)

Plagiarism detectors
The downside of plagiarism detector tech Nature article