That code won't even compile so everything else you said about it doing something doesn't matter.
This comparison is not possible and will keep your code from compiling:
If Label10.Text >= "1" <= "30" Then
First, the content of a label is always a string, so you're not comparing the value of the label for something between 1 and 30.
Next, you MUST have a logical operator between comparisons. You could should look more like this:
Dim value = CInt(Label10.Text)
If value >= 1 And value <= 30 Then
But even that's bad. The label should just be used to displaying a value, NOT being used to store one and be made part of your apps logic.