How to lock a device to certain ap?

My camera in third floor keeps connecting to ap mounted in first floor.How to solve the problem?

And my camera is newly manufactured which support Wifi6.

Perhaps you can use the workaround mentioned here: Lock a device to an AP - #10 by mischa