The secret here is in implied odds
Before you place a bet, look at the size of your stack and theirs.
You have pocket 5's. I have AA. I raise and you put me on AA-QQ maybe AK ya know whatever.
When the flop is XX5, you know the AA is going to stack off.
You will improve to a set 1 in 8 times, (on the flop) so if someone bets 500 but only has 2200 in front, you cant call. If the same person has 5000 in front, your getting 10-1 implied odds.
So the next thing you ask is "will this guy stack off if I hit my set?"
If yes, then call.
If no then fold.
You are paying off implied odds hard here.
bet so the dont have odds against you by:
1.) Be less willing to stack off when you "miss"
2.) Control the size of the pot pre flop as some eluded to.
3.) Bet more than 8-1 against his and your stack so if he calls and you do stack off, it is still a mistake on there part.
I prefer controling the size of the pot myself.