This is not a limit switch:

Here you can see magnetic limit switches on my X and Y axes (others may have mechanical type):
These look to be your limit switches. X on the upper right / Y on the Left of the gantry:
On a 6442 Ruida Controller, you will need to navigate to User Parameters to access Reset Parameters.
If after you enable homing, your machine is not heading to the proper corner (which from your pictures appears to be the Top, Left), then you will need to reverse the Direction Polarity appropriately for the axis or possibly both axes. And then if at anytime your keypad on the panel is opposite of what it should be logically, then you can Invert the Keypad Direction.



