1. Can ghusl e jnabat be done cautiously with wajib niyat if someone is unable to know/understand that what is the correct obligation?

2. And at the same time, if someone could not understand the state of janabat and did not perform ghusl, how ever in actual the person was mujnib, now what would be the obligation in this case?

3. And what would be the status of the namaz offered before ghusl?

1. If someone wants to do Ghusl as a precautionary measure on doubtful janaba then wodhu must be added.
2. If a person does not know that he or she has janaba then Ghusl is not wajib.

3. The past Salaat must be repeated as much as possible