it sounds like you've definitely wired it up wrong.

Both limit switches and the bed leveller should definitely be able to be plugged in at the same time.