inexpediently

adverb
  1. in a way that is not suitable or advisable; inappropriately or unwisely
  2. Usage: formal

Examples