When I was late for salat fajr, I checked what to do in this case and I thought you were supposed to complete 1 rakah then make the intention of ada’, and if you have bit more time to complete qunut and the 2nd rakah, then you make qunut, go in ruku, then after it, you make the intention of Ada’

Is such prayer valid? It was my fault for misunderstanding a ruling in sistani.org

The ruling: https://www.sistani.org/english/book/48/2203/

(Ruling 735.)

If you had time to pray one rakah before sun rise, then your prayer is Ada’, and the intention takes place at the beginning of the prayer, not at the end