Devil can be used to emphasize what you think about someone or something. For example, if you say that someone is a devil of a nuisance, you mean that they are very annoying. If you say that something is a devil of a problem, you mean that it is a very difficult problem.
[emphasis] He was always a devil of a nuisance.
It's a devil of a tricky problem,isn't it?