Working and Cpp Disability

I know I can make 5700.00 this year working part time on Cpp disability. But what if I turn 65 in June. I realize that I go on Cpp at that time and disability pension is ended. But are those earnings only counted til June?
If I continue to work all year would I have to pay back 6 months of Cpp disability that I receive til June?
If I go over that amount?
Yes I tried calling but got no clear answer

I would assume it is a pro rated amount so you can earn half of $5700.
I’m not a lawyer but that seems logical.