What Should A Muslim's Approach Be Towards Suspicion Of Impurity?
To repeat the missed prayer in such case is not necessary. and doubts obligate nothing.
It is your knowledge or guess to see if you had said your prayer before or after that. and if time is there, you can repeat the prayer and if not, no need to repeat.
Okay JazakAllah! It is clear now.