A bad cucumber or spoiled cucumber will feel squishy instead of feeling firm.
Although if just one part of the cucumber is squishy you can cut that part off and eat the rest of the cucumber.
Cucumbers will last around a week in the refrigerator before going bad and if they're slimy feeling or or mushy feeling with white slime or mold then they're bad and should be thrown out.