I would only buy raw milk from a farmer where I could see his cows and operations. Cows can be filthy depending upon their environment- and not necessarily the farmer's fault. Cows are natural critters and some aren't adverse to mud and manure.The dairyman should be washing/hosing off the udder before each milking and depending upon how conscientious the milker is, that's how clean the milk going into the system will be. Also, how clean is the straining sock in the pipeline? What's the herd's somatic cell count? That's a pretty personal question for a dairyman!
Local vs interstate raw milk is a matter of time and distance. Local is fresher and always better. I would not want out of state raw milk. I believe there are some federal laws that milk must be processed within three days of pickup from a farm. Most farms are picked up every other day or daily. But I have kept my own raw milk for a week. The cream just gets thicker

The feds stepped into the dairy area because of pasteurization and the necessity of it during the TB outbreaks of the early 1900s. Milk cows of that era were notorious for carrying TB in their milk and every little town had a dairy that bottled its own milk and peddled it to the townspeople. Before that, the farmer had it in a large can in the back of his horsedrawn wagon and ladled it out at every stop.
Anyway, the states and theUSDA developed a cow identification eartag system and started testing herds for TB. If your cow tested positive, she was slaughtered. Period. No question. Small compensation to the farmer. This went on well into the 1960s. The gov't also paid for vaccination of calves for brucellosis which would cause abortions. AS these were erradicated, the gov't scaled down the programs and I don't believe there is any official program for either these days- at least not in PA.
Our 4H animals which travel to shows are tested yearly( and we pay for it.) I believe there are interstate test requirements for shipping of cattle also.
Speaking of milk and shipping, did you know there is and has been for years a shortage of liquid milk in the Northeast PA? Milk is trucked in from the Midwest to make up the difference.