You would need a bunch but you could simply stack them and use a couple or 4 of zip ties to anchor them together. A gate might be a bit difficult, but it could be managed.
This tells you "how to" but did not see a picture:
Is this fence indoors or outside?
Plastic crates, in general, or not meant to survive ultraviolet light. You will have to paint them to prevent the UV from rotting them.
You would need to stack them high and attach them all I’ve done that similar some similar to that with the ties that he use that lock together sort of at the place you surround put peoples hands as a black ties him that’s all them together and then you need something to hold them into the ground from falling over sort of like spikes