I used safe gaurd first, then straight away used petal dance as I was told that I would be protected from the confusion but my pokemon because confused. Later while using the same pokemon, I used safe gaurd but then became paralyzed from a foes static ability. Why did this happen??
Safeguard protects confusion from opponents like swagger's confusion, however, it doesn't protect from self induced confusion, like from petal dance or thrash (in this case petal dance).
Hope this helps :)