level up need help

hello all i got this script that iv been working one today and its got a switch function on and when i get 50 exp i made it that the level (level of character) become level 2 because of the level += 1; any way my prob is that when i get the exp, and it adds up to 50 its adds 1 level really quick so what i want it to do is to just add one level not 1 + level ever second till i go over 50 if you can help thanks

here's the script

var level = 1;

private var ExpUp = false;

static var EXP = 0;

function OnTriggerEnter (hit : Collider)
{
     if(hit.gameObject.tag == "ExpOrb")
     {
         ExpUp = true;
         ExpController.EXP += 25;
     }
}

function Update () 
{
    switch(EXP)
    {
        case 50:
            level += 1;
        break;

        case 150:
            level += 1;
        break;

        case 300:
            level += 1;
        break;

        case 500:
            level += 1;
        break;

        case 750:
            level += 1;
        break;

        case 1000:
            level += 1;
        break;

        case 1300:
            level += 1;
        break;

        case 1600:
            level += 1;
        break;

        case 2000:
            level += 1;
        break;
    }
    print(EXP);
    print(level);
}

Don't put the level up check in Update (). If you want to take this approach, create a separate function and call it any time you gain experience.

function CheckLevelUp() 
{
    switch(EXP)
    {
        case 50:
        case 150:
        case 300:
        case 500:
        case 750:
        case 1000:
        case 1300:
        case 1600:
        case 2000:
            level += 1;
        break;
    }
}

This isn't a particularly flexible way of handling experience or levels. For example, if you ever have anything that doesn't give 25 experience, you may miss the 'case' and the levelup would never occur. But your question was asking how to get this working, so I've tidied it up for you.