I think, in this situation, the right decision should be on the preflop, when the size of your bet determines the situation at the table. Of course, you need to carefully study the opponent, because sometimes even a very big bet does not allow you to get rid of bad players... You should never bluff against a limp, because it can drag you into a bad game... Also, do not overestimate the strength of your hand. Hands (AQ, AJ,AT) are not stronger than suited connectors or other bad hands against a limp, so carefully study the player against whom you open your hand and pay a little less attention to your hand when a crazy player is against you...
Good pairs have a slightly better situation, but you need to carefully look at the table and make the right bets on the line to knock out the limper, but do not rush to quickly disperse the pot, because no one cancels the wonderful river =))