Improperly has 2 different meanings across 1 category:
Adverb
in an improper way
"he checked whether the wound had healed improperly"
in an improper manner; not properly
"The security guard noticed that the heavy door was left improperly locked, allowing cold wind to rush into the hallway."