In a way that is considered morally wrong.
अनैतिक तरीके से
English Usage: He acted immorally when he cheated on the test.
Hindi Usage: उसने परीक्षा में धोखा देकर अनैतिक तरीके से व्यवहार किया।