The first thing you need to know is, "TPTK is not a great hand." It's not bad, but one is unlikely to stack anyone (or be stacked) with it. As a general rule, calling an all in with TPTK is bad.
As other have already written, one has to watch Villain's play. Every street Hero needs to be thinking of a reason for Villain's play, "Why did Villain call by bet?" "What could she have?" are question one should ask after every play.