So, you have to figure, in the worst case your opponent has trips.
So, the absolute worst you are looking at is your opponent is playing pocket Jacks. I don't believe that is unreasonable based upon the betting. If he has the Jack of spades, reducing your odds
of catching the flush, you are looking at being 32.83% to win.
Also, if my calculation is correct, there is $8 currently in the pot, and you would have to call an additional $2, meaning you are getting 1:5 pot odds
. So, based upon that, you are correct to call. Whether you should raise and try to push him out or call would need to be based upon observations on this particular player's style.
Two pair places you at a smaller disadvantage. However, J10 is the only reasonable hand to have two pair on based upon betting. This situation places you at 42.22% to win.
Any other situation places you at an advantage.
Personally, I think I would call the bet and see what comes on the turn. You then get to act first anyway, so you can call-bet instead of a raise.