You are swimming in the middle of the pool and suddenly you feel tired. And you want to move to the edge of the pool to take a rest.
It seems that native speakers suggest "I want to get out of the pool".
But I don't want to get out of the pool. I want to move to the edge of the pool (because it's safer) to take a rest.
Is it ok to say "I want to swim ashore" or "I want to swim to the edge of the pool" in this situation?