I feel where you’re coming from, I have the sassiest chestnut gelding but its just about experience and predicting when your horse is going to act up. I’ve fallen enough times to feel when my horse is going to act up. Its just about understanding your horse and what trigger’s the sass
You just have to clear your mind and not focus on the fact that they are sassy/ difficult and pretend that they are perfectly fine. Sometimes when you expect them to you get nervous and they sense it and do it to you or when you ride them a certain way because you expect them to pull some crap on you but the way you are riding is causing them to resist you. But if they still do it, then discipline them! Don't let them get away with it. If they still don't listen do it again and again until they get it right.