Sanji initially stopped Doflamingo with his leg, then Doflamingo dodged his next attack, even blocking the third one he had no choice but use his most broken move to stop Sanji's attack, just as he did to stop Luffy and Law.
Imagine if Sanji was aware of Doflamingo's powers