I would be very worried about parasites and pathogenic bacteria.
I guess you could bleach, bleach,bleach, boil, boil, boil, rinse, rinse, rinse; but would it be worth the extra effort when you could just buy sand at Home Depot? Unless that river bank locale holds some special meaning for you, I would just get some sand from a commercial source.