It's impossible to avoid such things at micro stakes and impossible to read. I think u have to go broke there all the time (and play careful against these players from now on, exspecting ATC any time)
Keep in mind that such beats are the reason for Poker beeing profitable if you have an edge (and I guess you have here

, because the donks really think what they do gets rewarded every time and that every hand wins money.
And for the long run: play 100 such situations and I bet you will face KJ with your AJ hand, and JJ+ against your set SO often, that you will show profit.