There's no obvious reason it should be dangerous if it's clean with no residues of soap or anything else. All I can tell you is that I've used plastic food containers (like margarine tubs) to temporarily accommodate fish and amphibians and to hatch fish eggs in without any problems.