Digs his heels in the sand

He digs his heels in the sand - meaning?

I think you are mixing two phrases. To "dig in your heels" is to resist, to stand your ground. "Draw a line in the sand" is setting boundaries, indicating what is not acceptable.