How to judge the Boundary collision with skybox

I create a .babylon object inside the skybox,the object can walk or run,i want it stop when the object near the skybox boundary

You could probably stop moving when arriving near the bounding box info of the skybox - the camera min distance to be sure you would not clip the skybox.