Comparison with an integer from a dropdown list not working
You'll want to use:

{% set mylevel = currentUser.level.value %}


If you just use currentUser.level and assign it to a variable, then what you'll get back is a MultiOptionsFieldData class, instead of the value you are expecting.

There is a note on the bottom of the page here that describes it.