Can I use my tank to act like a retaining wall?

No, you cannot use your tank in place of a retaining wall. Uneven pressure on your tank  has the potential to deform and damage the tank.

However, you can recess your tank into a bank, provided there is a clear space between the two.