Amsterdam is like any big city , there are risks but common sense tells you not to go buying shit off people on the street.
The place is policed reasonably and I find telling the street dealers NO thanks mate I have all I need is usualy enough for them to start looking for other customers.
I feel safer in Amsterdam than I have felt in any other major city , just remember to behave appropriately.