Arrangements for regulating or controlling electric motors, appropriate for both AC and DC motors for preventing overspeed or under speed