Both of those options work. The potato is more so to get rid of larvae. In the past I’ve had great success with this stuff you can get on Amazon. It’s called SNS 209. Just follow the directions on the bottle. Can be used as a foliar spray or systemic.
Currently I am using something called food grade DE. It’s cheap and you just sprinkle it all over the top of your soil. I find I get little larvae crawling on my leaves every now and then, especially after I water too much. But with the soil taken care of/covered, it stops their growth cycle. I find after you water the de and it dries out, it can get hard. so I take a little knife and just break up the top of the soil if needed. Most of time if you just water slow and let the water sink/soak in the problem takes care of itself. Good luck and enjoy your grow.