Thanks, I realized where I was going wrong, it was just at the time of selecting the primary disk to shrink it, instead of selecting the primary partition I selected the recovery partition.
That reason i receipt the error:
You may not shrink OEM, ESP, or recovery partitions, or, offline volumes.
The volume you have selected may not be shrunk. Please select another volume and try again.