Stingrays are not aggressive animals and they do not aggressively attach humans.
Picture from I Am Wilderness
The most common occurrence of people getting stung by stingrays happens when they accidentally step on one. It is advised that one should shuffle their feet when walking to avoid stepping on a stingray. Also to avoid getting stung while wading, stones should be thrown into the water to scare stingrays away.