You will see the majority of your chips dwindle away not through folding preflop but more having the second best hand and having to see them being given to the best hand.
There is no way unless you are a mind reader of knowing what your opponent is holding so there is no way you can fold a good looking hand. You can of course try avoiding having the underhand
by folding those hands that can be beaten pre-flop. If another player in an earlier position puts in a raise you should fold that Ace Jack, the probability is they have an Ace King or Ace Queen
or even a pair of jacks or better.
Always remember that a hand that is strong early in a game may lose its strength as the game progresses.
Always fold your hand when you know you can't win. Even if its a pair of Aces.