Guys, thank you all so much for the responses. Many of you have recommended using virtual machines, and that will probably be sufficient for most scenarios, but I just want to leave a link to the person’s comment about some software being able to detect virtual machines just in case, so that you keep that in mind and don’t put yourself in danger.
Sounds good!