We know that the infinity stones are very powerful gems. But in the movie Avengers: Infinity War, after gathering all the infinity stones, Thanos snapped his fingers and wiped out half of all living creatures with the help of the infinity gauntlet. Is these stones' only power together just to wipe out beings from existence or was it a specialty only belonging to the snap, like gesture based?
Or do the stones behave according to the will of the one who holds them? Like Thanos wants to wipe out 50%, so the stones helps him to achieve that? If somebody else wants to bring the "dead" back, then could he just snap it again and boom! everyone is back. Do they work like that or something else?