The Next Level Button C#

Hi! I am making a Roll-A-Ball like game with multiple levels. I can create the game and the button, but i need to know how to hide the button until the user has collected all the points. I am using Unity 5 and i need it to be in C#. I was testing this code:

    public void NLevelButton ()
	{
		if(count <= 5)
		{
			NextLevel.gameObject.SetActive (false);
		}

		if (count >= 6) 
		{
			NextLevel.gameObject.SetActive (true);
		}
	}

but it isn’t working If you have any lines of code that will work, then please comment, or tell me why this isn’t working. Thanks!

EDIT For those who are having the same problem, I found a solution:

public GameObject go

if(count < 200)
{
go.SetActive(false);
}

this will work.

so do you have a answer? cause i have the same problem